diff --git a/web/app/components/plugins/plugin-item/action.tsx b/web/app/components/plugins/plugin-item/action.tsx index 082d9e4a32..80dfd78f12 100644 --- a/web/app/components/plugins/plugin-item/action.tsx +++ b/web/app/components/plugins/plugin-item/action.tsx @@ -92,11 +92,18 @@ const Action: FC = ({ 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 (