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

This commit is contained in:
lohxt1
2025-02-11 19:51:43 +05:30
committed by Anoop M D
parent 4656958f2f
commit eff3b29bfb

View File

@@ -1767,7 +1767,7 @@ 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)) {
if (item?.draft && areItemsTheSameExceptSeqUpdate(item?.draft, file.data)) {
item.draft = null;
}
} else {