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:
Andre Silva authored and GitHub committed 2025-05-12 10:50:16 +00:00
1 parent 388bc7392c
commit 18fe8ecd39
1 file changed
+2 -2
@@ -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>