Skip to content

Commit

Permalink
fix(ui): Import > Postman URL
Browse files Browse the repository at this point in the history
  • Loading branch information
flawiddsouza committed Oct 15, 2024
1 parent 8d16787 commit 31c04eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/ui/src/components/ImportModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 31c04eb

Please sign in to comment.