Skip to content

Commit

Permalink
updated validations
Browse files Browse the repository at this point in the history
  • Loading branch information
lohxt1 committed Jul 10, 2024
1 parent 7f6a9ac commit da2b9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bruno-app/src/utils/collections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export const transformCollectionToSaveToExportAsFile = (collection, options = {}
};

let { request, meta } = si?.root || {};
let { headers, script, vars, tests } = request || {};
let { headers, script = {}, vars = {}, tests } = request || {};

// folder level headers
if (headers?.length) {
Expand Down Expand Up @@ -458,7 +458,7 @@ export const transformCollectionToSaveToExportAsFile = (collection, options = {}
};

let { request, docs, meta } = collection?.root || {};
let { auth, headers, script, vars, tests } = request || {};
let { auth, headers, script = {}, vars = {}, tests } = request || {};

// collection level auth
if (auth?.mode) {
Expand Down

0 comments on commit da2b9b8

Please sign in to comment.