Skip to content

Commit

Permalink
fix(ui): Import > Insomnium export fails to import because of the new…
Browse files Browse the repository at this point in the history
… unit_test_suite type
  • Loading branch information
flawiddsouza committed Mar 8, 2024
1 parent 5086cd1 commit 82284a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/components/ImportModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<option>Restfox</option>
<option>Postman</option>
<option>Postman URL</option>
<option>Insomnia</option>
<option value="Insomnia">Insomnia / Insomnium</option>
<option>OpenAPI</option>
<option>OpenAPI URL</option>
</select>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ export function convertInsomniaExportToRestfoxCollection(json, workspaceId) {

const workspace = json.resources.find(item => item._type === 'workspace')

json.resources.filter(item => ['cookie_jar', 'api_spec', 'environment', 'proto_file'].includes(item._type) == false).forEach(item => {
json.resources.filter(item => ['cookie_jar', 'api_spec', 'environment', 'proto_file', 'unit_test_suite'].includes(item._type) == false).forEach(item => {
if(item._type === 'workspace' || item._type === 'request_group') {
let parentId = item.parentId

Expand Down

0 comments on commit 82284a3

Please sign in to comment.