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
2025-05-12 11:50:16 +01:00
committed by GitHub
parent 388bc7392c
commit 18fe8ecd39

View File

@@ -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>