Fix Postman variable import

This commit is contained in:
Gregory Schier
2024-03-22 10:40:51 -07:00
parent 0915ea8585
commit 2b0f73b7c5
2 changed files with 7 additions and 6 deletions

View File

@@ -37,10 +37,11 @@ export function pluginHookImport(contents: string): { resources: ExportResources
id: generateId('wk'),
name: info.name || 'Postman Import',
description: info.description || '',
variables: root.variable?.map((v: any) => ({
name: v.key,
value: v.value,
})),
variables:
root.variable?.map((v: any) => ({
name: v.key,
value: v.value,
})) ?? [],
};
exportResources.workspaces.push(workspace);