diff --git a/src/components/library/artist/List.jsx b/src/components/library/artist/List.jsx index 0542975e..e8b6c97e 100644 --- a/src/components/library/artist/List.jsx +++ b/src/components/library/artist/List.jsx @@ -24,7 +24,6 @@ export default function ArtistList() { // refresh immediately, or if moved to a different page, or if the search query // changed dispatch(loadLibraryEntries('artists', page, query)) - setSearchBoxQuery(query || '') }, // eslint-disable-next-line @eslint-react/exhaustive-deps [page, query] diff --git a/src/components/library/song/List.jsx b/src/components/library/song/List.jsx index 497a4f29..f70c4dd8 100644 --- a/src/components/library/song/List.jsx +++ b/src/components/library/song/List.jsx @@ -26,9 +26,9 @@ export default function SongList() { useEffect( () => { - // fetch songs from server immediately, and if the page or if the query changes + // fetch songs from server immediately, and if the page or if the query + // changes dispatch(loadLibraryEntries('songs', page, query)) - setSearchBoxQuery(query || '') }, // eslint-disable-next-line @eslint-react/exhaustive-deps [page, query] diff --git a/src/components/library/work/List.jsx b/src/components/library/work/List.jsx index 39cf784e..240b311a 100644 --- a/src/components/library/work/List.jsx +++ b/src/components/library/work/List.jsx @@ -41,9 +41,9 @@ export default function WorkList() { return } - // load entries if the page, the query, the work type, or the work thype status changes + // load entries if the page, the query, the work type, or the work thype + // status changes dispatch(loadLibraryEntries('works', page, query, workTypeQueryName)) - setSearchBoxQuery(query || '') }, // eslint-disable-next-line @eslint-react/exhaustive-deps [page, query, workTypeQueryName, workTypeStatus] diff --git a/src/components/playlist/played/List.jsx b/src/components/playlist/played/List.jsx index 466374b6..c1fb1c8f 100644 --- a/src/components/playlist/played/List.jsx +++ b/src/components/playlist/played/List.jsx @@ -30,7 +30,6 @@ export default function PlayedList() { // the hash changes if (playlistPlayedStatus !== Status.pending) { dispatch(loadPlaylistEntries('played', page, query)) - setSearchBoxQuery(query || '') } }, // eslint-disable-next-line @eslint-react/exhaustive-deps diff --git a/src/components/playlist/playerErrors/List.jsx b/src/components/playlist/playerErrors/List.jsx index 45dd925a..1d5a308a 100644 --- a/src/components/playlist/playerErrors/List.jsx +++ b/src/components/playlist/playerErrors/List.jsx @@ -30,7 +30,6 @@ export default function PlayerErrorsList() { // the hash changes if (playerErrorsStatus !== Status.pending) { dispatch(loadPlayerErrors(page, query)) - setSearchBoxQuery(query || '') } }, // eslint-disable-next-line @eslint-react/exhaustive-deps diff --git a/src/components/playlist/queuing/List.jsx b/src/components/playlist/queuing/List.jsx index 13a46bdd..dd26f9cc 100644 --- a/src/components/playlist/queuing/List.jsx +++ b/src/components/playlist/queuing/List.jsx @@ -30,7 +30,6 @@ export default function QueuingList() { // or the hash changes if (playlistQueuingStatus !== Status.pending) { dispatch(loadPlaylistEntries('queuing', page, query)) - setSearchBoxQuery(query || '') } }, // eslint-disable-next-line @eslint-react/exhaustive-deps diff --git a/src/components/settings/songTags/List.jsx b/src/components/settings/songTags/List.jsx index 63071615..df131d83 100644 --- a/src/components/settings/songTags/List.jsx +++ b/src/components/settings/songTags/List.jsx @@ -27,7 +27,6 @@ export default function SongTagsList() { // refresh song tags immediately and if the page changes if (songTagsStatus !== Status.pending) { dispatch(loadSongTags(page, query)) - setSearchBoxQuery(query || '') } }, // eslint-disable-next-line @eslint-react/exhaustive-deps diff --git a/src/components/settings/users/List.jsx b/src/components/settings/users/List.jsx index 9a2e186d..b081c318 100644 --- a/src/components/settings/users/List.jsx +++ b/src/components/settings/users/List.jsx @@ -28,7 +28,6 @@ export default function UsersList() { // refresh the users immediately and if the page changes if (listUsersStatus !== Status.pending) { dispatch(loadUsers(page, query)) - setSearchBoxQuery(query || '') } }, // eslint-disable-next-line @eslint-react/exhaustive-deps