Merge remote-tracking branch 'origin/feat/trigger' into feat/trigger

This commit is contained in:
zhsama 2025-10-23 16:46:35 +08:00
commit e7192de9c0
1 changed files with 12 additions and 5 deletions

View File

@ -92,11 +92,18 @@ const Action: FC<Props> = ({
const handleDelete = useCallback(async () => {
showDeleting()
const res = await uninstallPlugin(installationId)
hideDeleting()
if (res.success) {
hideDeleteConfirm()
onDelete()
try{
const res = await uninstallPlugin(installationId)
if (res.success) {
hideDeleteConfirm()
onDelete()
}
}
catch (error) {
console.error('uninstallPlugin error', error)
}
finally {
hideDeleting()
}
}, [installationId, onDelete])
return (