From c82dd6901e2c2fa6062302da3521730c266b374c Mon Sep 17 00:00:00 2001 From: Vamsi Krishna <46787868+vamsikrishnamathala@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:56:10 +0530 Subject: [PATCH] [WEB-3184] fix: link messages (#6535) --- .../components/issues/issue-detail-widgets/links/helper.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ae915beb89..b00d800367 100644 --- a/web/core/components/issues/issue-detail-widgets/links/helper.tsx +++ b/web/core/components/issues/issue-detail-widgets/links/helper.tsx @@ -29,7 +29,7 @@ export const useLinkOperations = ( }); } catch (error: any) { setToast({ - message: error?.data?.error ?? "The link could not be created", + message: error?.data?.url?.error ?? "The link could not be created", type: TOAST_TYPE.ERROR, title: "Link not created", }); @@ -45,9 +45,9 @@ export const useLinkOperations = ( type: TOAST_TYPE.SUCCESS, title: "Link updated", }); - } catch (error) { + } catch (error: any) { setToast({ - message: "The link could not be updated", + message: error?.data?.url?.error ?? "The link could not be updated", type: TOAST_TYPE.ERROR, title: "Link not updated", });