fix: save button on confirm close popup not working (#2156)

This commit is contained in:
Rinku Chaudhari 2024-04-29 19:27:59 +05:45 committed by GitHub
parent c17e4effe7
commit 23704a0800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -417,7 +417,10 @@ export const transformRequestToSaveToFilesystem = (item) => {
});
if (itemToSave.request.body.mode === 'json') {
itemToSave.request.body.json = replaceTabsWithSpaces(itemToSave.request.body.json);
itemToSave.request.body = {
...itemToSave.request.body,
json: replaceTabsWithSpaces(itemToSave.request.body.json)
};
}
return itemToSave;