mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-16 18:55:44 -06:00
properly set a default value for the isFavorites filter
This commit is contained in:
@@ -5,7 +5,7 @@ import { create } from 'zustand'
|
||||
type LibraryStore = {
|
||||
sortDescending: boolean
|
||||
setSortDescending: (sortDescending: boolean) => void
|
||||
isFavorites: boolean
|
||||
isFavorites: boolean | undefined
|
||||
setIsFavorites: (isFavorites: boolean | undefined) => void
|
||||
isDownloaded: boolean
|
||||
setIsDownloaded: (isDownloaded: boolean) => void
|
||||
@@ -18,7 +18,7 @@ const useLibraryStore = create<LibraryStore>()(
|
||||
sortDescending: false,
|
||||
setSortDescending: (sortDescending: boolean) => set({ sortDescending }),
|
||||
|
||||
isFavorites: false,
|
||||
isFavorites: undefined,
|
||||
setIsFavorites: (isFavorites: boolean | undefined) => set({ isFavorites }),
|
||||
|
||||
isDownloaded: false,
|
||||
|
||||
Reference in New Issue
Block a user