diff --git a/src/redux/playQueueSlice.ts b/src/redux/playQueueSlice.ts index d85ab4c..3359089 100644 --- a/src/redux/playQueueSlice.ts +++ b/src/redux/playQueueSlice.ts @@ -238,8 +238,8 @@ const playQueueSlice = createSlice({ [ (entry: any) => typeof entry[action.payload.columnDataKey] === 'string' - ? entry[action.payload.columnDataKey].toLowerCase() - : entry[action.payload.columnDataKey], + ? entry[action.payload.columnDataKey].toLowerCase() || '' + : entry[action.payload.columnDataKey] || '', ], action.payload.sortType ); diff --git a/src/redux/playlistSlice.ts b/src/redux/playlistSlice.ts index 957c21e..e45e34f 100644 --- a/src/redux/playlistSlice.ts +++ b/src/redux/playlistSlice.ts @@ -37,8 +37,8 @@ const playlistSlice = createSlice({ [ (entry: any) => typeof entry[action.payload.columnDataKey] === 'string' - ? entry[action.payload.columnDataKey].toLowerCase() - : entry[action.payload.columnDataKey], + ? entry[action.payload.columnDataKey].toLowerCase() || '' + : entry[action.payload.columnDataKey] || '', ], action.payload.sortType );