From c2e6dee2daa4babbdc55baf6b0c94bc43b13b7c6 Mon Sep 17 00:00:00 2001 From: lohit Date: Wed, 10 Jul 2024 16:26:19 +0530 Subject: [PATCH] validations update for export collection (#2607) * pr review changes * collection root object in export json * import environment updates * tests run execution order fix for collection runs * updated validations --- packages/bruno-app/src/utils/collections/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/utils/collections/index.js b/packages/bruno-app/src/utils/collections/index.js index ef519d51c7..c54fb7634f 100644 --- a/packages/bruno-app/src/utils/collections/index.js +++ b/packages/bruno-app/src/utils/collections/index.js @@ -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) { @@ -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) {