fix: get view 0 subscriptions

This commit is contained in:
DIYgod
2024-05-02 22:28:41 +08:00
parent 27b5f4a15c
commit ae2cde2685
+1 -1
View File
@@ -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",
},