mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-05 13:20:03 -06:00
fix: send toast when delete fails in survey editor (#1779)
This commit is contained in:
@@ -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