Skip to content

Commit

Permalink
fix(ui): Request Panel > Address Bar > paste curl command import mess…
Browse files Browse the repository at this point in the history
…es with the parent id of the existing request, removing folder / sub folder assignments and puts the request in the root of the workspace

Type 1 Reproduction Steps:
1) Create new workspace
2) Create Folder -> Create a request -> paste curl command -> don't need to send request or change anything
3) Create a new folder inside the previously created folder
4) Then move the request into new sub folder
all requests will disappear from sidebar immediately until you refresh page & your moved request will now be in the root of the workspace instead of inside the folder

This issue can be recreated even if not in a new workspace - but the issue is clearer if you're working in a empty workspace

Type 2 Reproduction Steps:
1) Create a folder in a workspace
2) Create a request in the created folder
3) Paste curl command into the request
4) Refresh page and you'll see that the request that was in the folder is now in the root of the workspace
  • Loading branch information
flawiddsouza committed Mar 3, 2024
1 parent 1bd0fa4 commit 1e4133e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/components/RequestPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ export default {
delete result[0]._id
delete result[0]._type
delete result[0].workspaceId
delete result[0].parentId
Object.assign(this.activeTab, result[0])
}
}
Expand Down

0 comments on commit 1e4133e

Please sign in to comment.