mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[WEB-1413] chore: update label creation toast error message. (#4572)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user