Skip to content

Commit

Permalink
validations update for export collection (#2607)
Browse files Browse the repository at this point in the history
* pr review changes

* collection root object in export json

* import environment updates

* tests run execution order fix for collection runs

* updated validations
  • Loading branch information
lohxt1 authored Jul 10, 2024
1 parent f64dca1 commit c2e6dee
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 c2e6dee

Please sign in to comment.