Merge pull request #1203 from ajnart/1129-application-error-a-client-side-exception-has-occurred-when-removing-an-icon

🐛 Fix clear icon in apperance tab
This commit is contained in:
Thomas Camlong
2023-07-23 10:33:16 +09:00
committed by GitHub

View File

@@ -84,7 +84,7 @@ export const IconSelector = forwardRef(
icon={<DebouncedImage src={value ?? currentValue} width={20} height={20} />}
rightSection={
(value ?? currentValue).length > 0 ? (
<CloseButton onClick={() => onChange(undefined)} />
<CloseButton onClick={() => onChange("")} />
) : null
}
itemComponent={AutoCompleteItem}