PMCORE-3159:Create a Case note has a strange behavior

This commit is contained in:
fabio
2021-08-31 17:34:00 -04:00
parent fa8940382c
commit d4c0603009

View File

@@ -93,20 +93,18 @@ export default {
})
)
.then((response) => {
if (
response.data.success === "success" &&
response.data.message == ""
) {
if (response.status === 200) {
that.attachDocuments = false;
that.dataAttachedDocuments.items = [];
that.getCasesNotes();
this.$refs["modal-comments"].hide();
this.$emit("postNotes");
} else {
that.showAlert(response.data.message, "danger");
that.dataAttachedDocuments.items = [];
this.$emit("postNotes");
}
});
})
.catch((error) => {
that.showAlert(error.response.data.error.message, "danger");
that.dataAttachedDocuments.items = [];
})
},
};
},