From 31c04ebad038a3f8c4e34ac094493e1d9e2dff42 Mon Sep 17 00:00:00 2001 From: Flawid DSouza Date: Tue, 15 Oct 2024 21:24:12 +0530 Subject: [PATCH] fix(ui): Import > Postman URL --- packages/ui/src/components/ImportModal.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/ImportModal.vue b/packages/ui/src/components/ImportModal.vue index 23f42d2e..50146398 100644 --- a/packages/ui/src/components/ImportModal.vue +++ b/packages/ui/src/components/ImportModal.vue @@ -247,7 +247,14 @@ export default { if(this.importFrom === 'Postman URL') { const response = await fetch(this.urlToImport) json = await response.json() - collectionTree = await convertPostmanExportToRestfoxCollection(json, false, this.activeWorkspace._id) + + const { collection, plugins: newPlugins } = await convertPostmanExportToRestfoxCollection(json, false, this.activeWorkspace._id) + + collectionTree = collection + + if(newPlugins.length > 0) { + plugins = plugins.concat(newPlugins) + } } else if(this.importFrom === 'OpenAPI URL') { const response = await fetch(this.urlToImport) json = await response.text()