Skip to content

Commit

Permalink
Fixes error thrown due to incomplete optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
shal1y authored Nov 2, 2022
1 parent 1d4fa25 commit ab27827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function useGrid({
*/
export const ClientContext = createContext<Client>(
new Client({
base: new URL(globalThis?.location.href || 'http://localhost'),
base: new URL(globalThis?.location?.href || 'http://localhost'),
})
)
ClientContext.displayName = 'Client'
Expand Down

0 comments on commit ab27827

Please sign in to comment.