Missing logic

This commit is contained in:
2025-04-16 00:38:23 -05:00
parent ae347112e8
commit 5697045fe6
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ function ThemeMiniCard({
allThemes: Theme[]; allThemes: Theme[];
item: number; item: number;
}) { }) {
const theme = allThemes.find((theme: Theme) => theme.id === item); const theme = allThemes?.find((theme: Theme) => theme.id === item);
return ( return (
<Group <Group

View File

@@ -227,7 +227,7 @@ function ThemePlaylistModal({
) : ( ) : (
<SimpleGrid cols={3}> <SimpleGrid cols={3}>
{selectedPlaylist.name !== 'Time of Day' && {selectedPlaylist.name !== 'Time of Day' &&
allThemes.map((miniTheme: Theme) => { allThemes?.map((miniTheme: Theme) => {
const newThemeList = themeList; const newThemeList = themeList;
return ( return (
<Group <Group