fix: renaming refrences

This commit is contained in:
LAKHAN BAHETI 2024-05-28 14:54:08 +05:30
parent 512defaf43
commit 39ace15e9c
3 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
state: "SUCCESS",
element: "Inbox page",
},
path: router.pathname,
routePath: router.pathname,
});
setToast({
type: TOAST_TYPE.SUCCESS,
@ -108,7 +108,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
state: "FAILED",
element: "Inbox page",
},
path: router.pathname,
routePath: router.pathname,
});
setToast({
type: TOAST_TYPE.ERROR,

View File

@ -96,7 +96,7 @@ export const InboxIssueEditRoot: FC<TInboxIssueEditRoot> = observer((props) => {
state: "SUCCESS",
element: "Inbox page",
},
path: router.pathname,
routePath: router.pathname,
});
setToast({
type: TOAST_TYPE.SUCCESS,
@ -115,7 +115,7 @@ export const InboxIssueEditRoot: FC<TInboxIssueEditRoot> = observer((props) => {
state: "FAILED",
element: "Inbox page",
},
path: router.pathname,
routePath: router.pathname,
});
setToast({
type: TOAST_TYPE.ERROR,

View File

@ -403,6 +403,7 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
elementId: getElementIdFromPath(router.asPath),
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [peekIssue, userId, captureEvent, router.asPath]);
if (!peekIssue?.workspaceSlug || !peekIssue?.projectId || !peekIssue?.issueId) return <></>;