mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: issue link error toast alert (#5068)
This commit is contained in:
committed by
GitHub
parent
1cd55cd95b
commit
4e815c0fed
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user