Skip to content

Commit

Permalink
fix: add optional chaining for collection variables in Postman importer
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjai0py committed Nov 14, 2024
1 parent 286fb3f commit ede920b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ede920b

Please sign in to comment.