Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-4182] Fix work item links error messages (#7122)

JayashTripathye570fe404f5e
diff --git a/packages/ui/src/toast/index.tsx b/packages/ui/src/toast/index.tsx
index 94cf1fa28c..5ccbd775b9 100644
--- a/packages/ui/src/toast/index.tsx
+++ b/packages/ui/src/toast/index.tsx
@@ -108,7 +108,7 @@ export const setToast = (props: SetToastProps) => {
)}
>
<X
- className="fixed top-2 right-2.5 text-toast-text-secondary hover:text-toast-text-tertiary cursor-pointer"
+ className="absolute top-2 right-2.5 text-toast-text-secondary hover:text-toast-text-tertiary cursor-pointer"
strokeWidth={1.5}
width={14}
height={14}
diff --git a/web/core/components/issues/issue-detail-widgets/links/helper.tsx b/web/core/components/issues/issue-detail-widgets/links/helper.tsx
index 5b85667afa..ad849eb3ad 100644
--- a/web/core/components/issues/issue-detail-widgets/links/helper.tsx
+++ b/web/core/components/issues/issue-detail-widgets/links/helper.tsx
@@ -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"),
});