Skip to content

Commit

Permalink
Prevent setting workspace as undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
lbebber committed Sep 5, 2020
1 parent c43b7ce commit eb3767c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/utils/routes.ts
Expand Up @@ -140,7 +140,7 @@ export const fetchServerPage = async ({
path,
query: {
...rawQuery,
workspace,
...(workspace ? { workspace } : {}),
__pickRuntime: runtimeFields,
},
})
Expand Down Expand Up @@ -240,7 +240,7 @@ export const getPrefetchForPath = async ({
path,
query: {
...rawQuery,
workspace,
...(workspace ? { workspace } : {}),
__pickRuntime: 'page,queryData,contentResponse,route',
},
})
Expand Down

0 comments on commit eb3767c

Please sign in to comment.