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

This commit is contained in:
Andre Silva
2025-07-12 09:48:45 +01:00
committed by GitHub
parent 29884dda97
commit 5ecc4db5da

View File

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