Skip to content

Commit

Permalink
improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Oct 13, 2022
1 parent af4ee87 commit d9815df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/insomnia-importers/src/importers/postman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ export class ImportPostman {

let parameters = [] as Parameter[];

if (typeof request.url !== 'string') {
// @ts-expect-error -- Url can be both string and Url type.
if (typeof request.url === 'object' && request.url.query) {
parameters = this.importParameters(request.url?.query);
}
return {
Expand Down

0 comments on commit d9815df

Please sign in to comment.