mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[WEB-4182] Fix work item links error messages (#7122)
* fix: backend error message toast when getting error * fix: toast in small screens
This commit is contained in:
@@ -32,7 +32,7 @@ export const useLinkOperations = (
|
||||
});
|
||||
} catch (error: any) {
|
||||
setToast({
|
||||
message: error?.data?.url?.error ?? t("links.toasts.not_created.message"),
|
||||
message: error?.data?.error ?? t("links.toasts.not_created.message"),
|
||||
type: TOAST_TYPE.ERROR,
|
||||
title: t("links.toasts.not_created.title"),
|
||||
});
|
||||
@@ -50,7 +50,7 @@ export const useLinkOperations = (
|
||||
});
|
||||
} catch (error: any) {
|
||||
setToast({
|
||||
message: error?.data?.url?.error ?? t("links.toasts.not_updated.message"),
|
||||
message: error?.data?.error ?? t("links.toasts.not_updated.message"),
|
||||
type: TOAST_TYPE.ERROR,
|
||||
title: t("links.toasts.not_updated.title"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user