forked from github/plane
fix: Delete estimate popup is not closing automatically (#2777)
This commit is contained in:
parent
a675cd5755
commit
1f904e88e1
@ -40,7 +40,13 @@ export const DeleteEstimateModal: React.FC<Props> = observer((props) => {
|
||||
|
||||
const estimateId = data?.id!;
|
||||
|
||||
projectEstimatesStore.deleteEstimate(workspaceSlug.toString(), projectId.toString(), estimateId).catch((err) => {
|
||||
projectEstimatesStore
|
||||
.deleteEstimate(workspaceSlug.toString(), projectId.toString(), estimateId)
|
||||
.then(() => {
|
||||
setIsDeleteLoading(false);
|
||||
handleClose();
|
||||
})
|
||||
.catch((err) => {
|
||||
const error = err?.error;
|
||||
const errorString = Array.isArray(error) ? error[0] : error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user