fix(releases-widget): fixed bug with changing a missing provider (#3605)

This commit is contained in:
Andre Silva authored and GitHub committed 2025-07-12 10:48:45 +02:00
1 parent 29884dda97
commit 5ecc4db5da
1 file changed
+1 -1
@@ -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>