mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
⚡️ Use debouncer for service name propagation
This commit is contained in:
@@ -53,7 +53,7 @@ export const IconSelector = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const matchingDebouncedIcon = data?.find(
|
const matchingDebouncedIcon = data?.find(
|
||||||
(x) => replaceCharacters(x.fileName.split('.')[0]) === replaceCharacters(form.values.name)
|
(x) => replaceCharacters(x.fileName.split('.')[0]) === replaceCharacters(debouncedValue)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!matchingDebouncedIcon) {
|
if (!matchingDebouncedIcon) {
|
||||||
@@ -61,7 +61,7 @@ export const IconSelector = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
form.setFieldValue('appearance.iconUrl', matchingDebouncedIcon.url);
|
form.setFieldValue('appearance.iconUrl', matchingDebouncedIcon.url);
|
||||||
}, [form.values.name]);
|
}, [debouncedValue]);
|
||||||
|
|
||||||
if (isLoading || !data) {
|
if (isLoading || !data) {
|
||||||
return <Loader />;
|
return <Loader />;
|
||||||
|
|||||||
Reference in New Issue
Block a user