mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
[WEB-1413] chore: update label creation toast error message. (#4572)
This commit is contained in:
parent
f5d95ba3a1
commit
4bb4609833
@ -73,9 +73,9 @@ export const CreateLabelModal: React.FC<Props> = observer((props) => {
|
||||
})
|
||||
.catch((error) => {
|
||||
setToast({
|
||||
title: "Oops!",
|
||||
title: "Error!",
|
||||
type: TOAST_TYPE.ERROR,
|
||||
message: error?.error ?? "Error while adding the label",
|
||||
message: error?.detail ?? "Something went wrong. Please try again later.",
|
||||
});
|
||||
reset(formData);
|
||||
});
|
||||
|
@ -63,9 +63,9 @@ export const CreateUpdateLabelInline = observer(
|
||||
})
|
||||
.catch((error) => {
|
||||
setToast({
|
||||
title: "Oops!",
|
||||
title: "Error!",
|
||||
type: TOAST_TYPE.ERROR,
|
||||
message: error?.error ?? "Error while adding the label",
|
||||
message: error?.detail ?? "Something went wrong. Please try again later.",
|
||||
});
|
||||
reset(formData);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user