mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix(database): authorize soft-delete by agent org + add onError + guard bulk-restore lists
This commit is contained in:
@@ -24,6 +24,9 @@ export const DatabaseDeleteButton = (props: DatabaseDeleteButtonProps) => {
|
||||
toast.error(result.data?.actionError?.message || "Unknown error occurred.");
|
||||
}
|
||||
},
|
||||
onError: () => {
|
||||
toast.error("Failed to delete database.");
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user