Bug fixes

This commit is contained in:
Sean Edmunds
2025-06-19 15:50:00 -05:00
parent 776e075073
commit 07c0a1df56
3 changed files with 22 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ function SettingsButton() {
body: selectedClient || wolClientData?.[0],
});
};
console.log(themePlaylistData);
useEffect(() => {
if (appCategoryData) {
const list: [any] = appCategoryData.map((category: AppCategory) => {
@@ -295,14 +295,29 @@ function SettingsButton() {
placeholder='Pick a playlist...'
value={currentThemePlaylist}
data={[
'All',
'Backgrounds',
'No Backgrounds',
{ value: 'All', label: 'All' },
{
value: 'Backgrounds',
label: 'Backgrounds',
disabled:
allThemes.filter(
(a: any) => !a.backgroundImage.toLowerCase().includes('none'),
).length === 0,
},
{
value: 'No Backgrounds',
label: 'No Backgrounds',
disabled:
allThemes.filter(
(a: any) => !a.backgroundImage.toLowerCase().includes('none'),
).length !== 0,
},
...(themePlaylistData
?.map((playlist: ThemePlaylist) => {
return {
value: playlist.name,
label: playlist.name,
disabled: JSON.parse(playlist.themeList).length === 0,
};
})
.toSorted((a: ComboboxItem, b: ComboboxItem) =>