mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
🐛 Fixing small bugs
This commit is contained in:
@@ -78,7 +78,7 @@ function MatchService(name: string, form: any) {
|
||||
}
|
||||
}
|
||||
|
||||
const DEFAULT_ICON = '/favicon.svg';
|
||||
const DEFAULT_ICON = '/favicon.png';
|
||||
|
||||
export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & any) {
|
||||
const { setOpened } = props;
|
||||
@@ -135,7 +135,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
|
||||
|
||||
const [debounced, cancel] = useDebouncedValue(form.values.name, 250);
|
||||
useEffect(() => {
|
||||
if (form.values.name !== debounced || form.values.icon !== DEFAULT_ICON) return;
|
||||
if (form.values.name !== debounced || form.values.icon !== DEFAULT_ICON || form.values.type !== 'Other') return;
|
||||
MatchIcon(form.values.name, form);
|
||||
MatchService(form.values.name, form);
|
||||
tryMatchPort(form.values.name, form);
|
||||
|
||||
@@ -44,7 +44,7 @@ export default function TitleChanger() {
|
||||
<TextInput label="Logo" placeholder="/img/logo.png" {...form.getInputProps('logo')} />
|
||||
<TextInput
|
||||
label="Favicon"
|
||||
placeholder="/favicon.svg"
|
||||
placeholder="/favicon.png"
|
||||
{...form.getInputProps('favicon')}
|
||||
/>
|
||||
<TextInput
|
||||
|
||||
Reference in New Issue
Block a user