Skip to content

Commit 7466639

Browse files
committed
Update getQueryKeyPrefixes when workspaceId is null
1 parent 5efe098 commit 7466639

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib/seam/use-seam-client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,12 @@ const getQueryKeyPrefixes = ({
213213
return [seamPrefix, publishableKey, userIdentifierKey]
214214
}
215215

216-
if (consoleSessionToken != null && workspaceId != null) {
217-
return [seamPrefix, consoleSessionToken, workspaceId]
216+
if (consoleSessionToken != null) {
217+
if (workspaceId != null) {
218+
return [seamPrefix, consoleSessionToken, workspaceId]
219+
}
220+
221+
return [seamPrefix, consoleSessionToken, 'without_workspace']
218222
}
219223

220224
return [seamPrefix]

0 commit comments

Comments
 (0)