fix: add optional chaining for collection variables in Postman importer

This commit is contained in:
Sanjai Kumar 2024-11-14 10:36:46 +05:30
parent 286fb3f46b
commit ede920b07f

View File

@ -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);
}