Various cleanup

This commit is contained in:
jeffvli 2023-06-14 00:12:10 -07:00
parent c5f551e963
commit 4167af098f
7 changed files with 1 additions and 16 deletions

View file

@ -358,8 +358,6 @@ const getRandomSongList = async (args: RandomSongListArgs): Promise<RandomSongLi
throw new Error('Failed to get random songs');
}
console.log('res', res);
return {
items: res.body.randomSongs?.song?.map((song) =>
ssNormalize.song(song, apiClientProps.server, ''),

View file

@ -53,8 +53,6 @@ const ActionRequiredRoute = () => {
},
];
console.log(checks);
const canReturnHome = checks.every((c) => c.valid);
const displayedCheck = checks.find((c) => !c.valid);

View file

@ -76,7 +76,6 @@ export const NavidromeAlbumFilters = ({
{
label: 'Is favorited',
onChange: (e: ChangeEvent<HTMLInputElement>) => {
console.log('e.currentTarget.checked :>> ', e.currentTarget.checked);
const updatedFilters = setFilter({
data: {
_custom: {

View file

@ -136,7 +136,6 @@ export const ShuffleAllModal = ({
/>
<Group grow>
<NumberInput
disabled={!enableMinYear}
label="From year"
max={2050}
min={1850}
@ -152,7 +151,6 @@ export const ShuffleAllModal = ({
/>
<NumberInput
disabled={!enableMaxYear}
label="To year"
max={2050}
min={1850}
@ -180,7 +178,6 @@ export const ShuffleAllModal = ({
label="Music folder"
value={musicFolderId}
onChange={(e) => {
console.log('e :>> ', e);
setStore({ musicFolderId: e ? String(e) : '' });
}}
/>

View file

@ -138,8 +138,6 @@ export const openUpdatePlaylistModal = async (args: {
queryKey: queryKeys.users.list(server?.id || '', query),
});
console.log('playlist', playlist);
openModal({
children: (
<UpdatePlaylistForm

View file

@ -66,8 +66,6 @@ const SearchRoute = () => {
lastRow = startIndex + numOfItems;
}
console.log('lastRow', lastRow);
params.successCallback(items, lastRow);
},
};
@ -113,8 +111,6 @@ const SearchRoute = () => {
lastRow = startIndex + numOfItems;
}
console.log('lastRow', lastRow);
params.successCallback(items, lastRow);
},
};

View file

@ -59,7 +59,6 @@ export const ApplicationSettings = () => {
{
control: (
<NumberInput
disabled={!isElectron()}
max={300}
min={50}
value={settings.zoomFactor}
@ -79,7 +78,7 @@ export const ApplicationSettings = () => {
/>
),
description: 'Sets the application zoom factor in percent',
isHidden: false,
isHidden: !isElectron(),
title: 'Zoom factor',
},
];