From 75970bca253a865b64b3eaa8699f71556761cfbc Mon Sep 17 00:00:00 2001 From: Ricardo Silverio Date: Thu, 22 Feb 2024 23:52:28 -0300 Subject: [PATCH] Saving draft even when no changes are detected compared to filesystem --- packages/bruno-app/src/utils/collections/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/collections/index.js b/packages/bruno-app/src/utils/collections/index.js index 216d74a4d..cbddc8b61 100644 --- a/packages/bruno-app/src/utils/collections/index.js +++ b/packages/bruno-app/src/utils/collections/index.js @@ -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;