Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix(releases-widget): validation preventing removal of a previously added icon (#3086)

Andre Silva18fe8ecd39f6
diff --git a/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx b/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx
index 3cf246845..343aadbf4 100644
--- a/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx
+++ b/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx
@@ -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>