mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-11 19:12:06 -05:00
fix: send toast when delete fails in survey editor (#1779)
This commit is contained in:
+2
-1
@@ -90,7 +90,8 @@ export default function SurveyMenuBar({
|
||||
setDeleteDialogOpen(false);
|
||||
router.back();
|
||||
} catch (error) {
|
||||
console.log("An error occurred deleting the survey");
|
||||
console.error("An error occurred deleting the survey");
|
||||
toast.error("An error occurred deleting the survey");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user