forked from github/plane
[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) => {
|
.catch((error) => {
|
||||||
setToast({
|
setToast({
|
||||||
title: "Oops!",
|
title: "Error!",
|
||||||
type: TOAST_TYPE.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);
|
reset(formData);
|
||||||
});
|
});
|
||||||
|
@ -63,9 +63,9 @@ export const CreateUpdateLabelInline = observer(
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setToast({
|
setToast({
|
||||||
title: "Oops!",
|
title: "Error!",
|
||||||
type: TOAST_TYPE.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);
|
reset(formData);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user