fix: get view 0 subscriptions
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user