We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bf8751 commit 6d9081dCopy full SHA for 6d9081d
1 file changed
client/src/Pages/Music/History.jsx
@@ -193,7 +193,7 @@ const HistoryPage = () => {
193
const isSearchActive = debouncedSearch && debouncedSearch.length >= 3
194
195
useEffect(() => {
196
- const q = searchQuery.trim()
+ const q = (searchQuery ?? "").trim()
197
198
const timer = setTimeout(() => {
199
if (q.length >= 3) {
@@ -212,7 +212,7 @@ const HistoryPage = () => {
212
limit: pageSize,
213
sortBy,
214
sortOrder,
215
- searchQuery: isSearchActive ? debouncedSearch : null,
+ searchQuery: isSearchActive ? debouncedSearch : "",
216
})
217
218
const songs = data?.songs ?? []
0 commit comments