Saving draft even when no changes are detected compared to filesystem

This commit is contained in:
Ricardo Silverio 2024-02-22 23:52:28 -03:00
parent 117726a01f
commit 75970bca25

View File

@ -380,7 +380,7 @@ export const transformRequestToSaveToFilesystem = (item) => {
uid: _item.uid,
type: _item.type,
name: _item.name,
seq: _item.seq,
seq: item.seq,
request: {
method: _item.request.method,
url: _item.request.url,
@ -540,6 +540,8 @@ export const areItemsTheSameExceptSeqUpdate = (_item1, _item2) => {
let item1 = cloneDeep(_item1);
let item2 = cloneDeep(_item2);
if (item1.seq === item2.seq) return false;
// remove seq from both items
delete item1.seq;
delete item2.seq;