mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
fix(releases-widget): validation preventing removal of a previously added icon (#3086)
* fix(releases-widget): validation preventing removal of a previously added icon * fix(releases-widget): bug with input controlled/uncontrolled state
This commit is contained in:
@@ -275,8 +275,8 @@ const ReleaseEditModal = createModal<ReleaseEditProps>(({ innerProps, actions })
|
||||
|
||||
<IconPicker
|
||||
withAsterisk={false}
|
||||
value={tempRepository.iconUrl}
|
||||
onChange={(url) => handleChange({ iconUrl: url })}
|
||||
value={tempRepository.iconUrl ?? ""}
|
||||
onChange={(url) => handleChange({ iconUrl: url === "" ? undefined : url })}
|
||||
error={formErrors[`${innerProps.fieldPath}.iconUrl`] as string}
|
||||
/>
|
||||
</Group>
|
||||
|
||||
Reference in New Issue
Block a user