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): fixed bug with changing a missing provider (#3605)

Andre Silva5ecc4db5dabc
diff --git a/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx b/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx
index 5d31f0bb3..0eecc8e2e 100644
--- a/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx
+++ b/packages/widgets/src/_inputs/widget-multiReleasesRepositories-input.tsx
@@ -368,7 +368,7 @@ const RepositoryEditModal = createModal<RepositoryEditProps>(({ innerProps, acti
value={tempRepository.providerIntegrationId ? [tempRepository.providerIntegrationId] : []}
error={formErrors[`${innerProps.fieldPath}.providerIntegrationId`] as string}
onChange={(value) => {
- handleChange({ providerIntegrationId: value.length > 0 ? value[0] : undefined });
+ handleChange({ providerIntegrationId: value.length > 0 ? value.pop() : undefined });
}}
/>
</div>