mirror of
https://github.com/docmost/docmost.git
synced 2026-06-15 22:48:42 +08:00
@@ -155,7 +155,9 @@ export function useDeletePageMutation() {
|
||||
});
|
||||
},
|
||||
onError: (error) => {
|
||||
notifications.show({ message: t("Failed to delete page"), color: "red" });
|
||||
const message =
|
||||
error["response"]?.data?.message || t("Failed to delete page");
|
||||
notifications.show({ message, color: "red" });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user