Skip to content

Commit

Permalink
fix(ui): Importing collection item of type socket was completely brok…
Browse files Browse the repository at this point in the history
…en, as it was importing item to the original workspace it was exported from
  • Loading branch information
flawiddsouza committed Jan 16, 2024
1 parent 43b58dc commit 1473b7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ui/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,10 @@ function importRestfoxV1(collections, workspaceId) {
})
} else {
if(item._type === 'socket') {
collection.push(item)
collection.push({
...item,
workspaceId,
})
} else {
collection.push({
_id: item._id,
Expand Down

0 comments on commit 1473b7f

Please sign in to comment.