fix: should be able to save the request after reverting the changes (#3999)

This commit is contained in:
lohit
2025-02-11 20:38:04 +05:30
committed by GitHub
parent eff3b29bfb
commit 31c11830a6

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