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
|
<IconPicker
|
||||||
withAsterisk={false}
|
withAsterisk={false}
|
||||||
value={tempRepository.iconUrl}
|
value={tempRepository.iconUrl ?? ""}
|
||||||
onChange={(url) => handleChange({ iconUrl: url })}
|
onChange={(url) => handleChange({ iconUrl: url === "" ? undefined : url })}
|
||||||
error={formErrors[`${innerProps.fieldPath}.iconUrl`] as string}
|
error={formErrors[`${innerProps.fieldPath}.iconUrl`] as string}
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|||||||
Reference in New Issue
Block a user