mirror of https://github.com/langgenius/dify.git
Merge remote-tracking branch 'origin/feat/trigger' into feat/trigger
This commit is contained in:
commit
e7192de9c0
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue