Skip to content

Commit

Permalink
fix: get view 0 subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 2, 2024
1 parent 27b5f4a commit ae2cde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/lib/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useSubscriptions = (view?: number) =>
await (
await fetch(
`${import.meta.env.VITE_ELECTRON_REMOTE_API_URL}/subscriptions` +
(view ? `?view=${view}` : ``),
(view !== undefined ? `?view=${view}` : ``),
{
credentials: "include",
},
Expand Down

0 comments on commit ae2cde2

Please sign in to comment.