fix: issue link error toast alert (#5068)
This commit is contained in:
parent
1cd55cd95b
commit
4e815c0fed
2 changed files with 4 additions and 4 deletions
|
|
@ -21,9 +21,9 @@ export const useLinkOperations = (workspaceSlug: string, projectId: string, issu
|
|||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Link created",
|
||||
});
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
setToast({
|
||||
message: "The link could not be created",
|
||||
message: error?.data?.error ?? "The link could not be created",
|
||||
type: TOAST_TYPE.ERROR,
|
||||
title: "Link not created",
|
||||
});
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ export const IssueLinkRoot: FC<TIssueLinkRoot> = (props) => {
|
|||
title: "Link created",
|
||||
});
|
||||
toggleIssueLinkModal(false);
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
setToast({
|
||||
message: "The link could not be created",
|
||||
message: error?.data?.error ?? "The link could not be created",
|
||||
type: TOAST_TYPE.ERROR,
|
||||
title: "Link not created",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue