From ede920b07f801f4e6a0241ad2e04bbb3c6c464d6 Mon Sep 17 00:00:00 2001 From: Sanjai Kumar Date: Thu, 14 Nov 2024 10:36:46 +0530 Subject: [PATCH] fix: add optional chaining for collection variables in Postman importer --- packages/bruno-app/src/utils/importers/postman-collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/importers/postman-collection.js b/packages/bruno-app/src/utils/importers/postman-collection.js index fa0292b340..a28ca9798b 100644 --- a/packages/bruno-app/src/utils/importers/postman-collection.js +++ b/packages/bruno-app/src/utils/importers/postman-collection.js @@ -506,7 +506,7 @@ const importPostmanV2Collection = (collection, options) => { importScriptsFromEvents(collection.event, brunoCollection.root.request, options, pushTranslationLog); } - if (collection.variable){ + if (collection?.variable){ importCollectionLevelVariables(collection.variable, brunoCollection.root.request); }