fix: should be able to save request after reverting all the changes

This commit is contained in:
lohxt1
2025-02-11 19:47:56 +05:30
committed by Anoop M D
parent aa4575b0ea
commit 4656958f2f

View File

@@ -1767,6 +1767,9 @@ export const collectionsSlice = createSlice({
// we don't want to lose the draft in this case
if (areItemsTheSameExceptSeqUpdate(item, file.data)) {
item.seq = file.data.seq;
if (areItemsTheSameExceptSeqUpdate(item?.draft, file.data)) {
item.draft = null;
}
} else {
item.name = file.data.name;
item.type = file.data.type;