[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:
parent
48b613ae66
commit
e570fe404f
2 changed files with 3 additions and 3 deletions
|
|
@ -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"),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue