mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
Saving draft even when no changes are detected compared to filesystem
This commit is contained in:
parent
117726a01f
commit
75970bca25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user