fix(images): avoid returning null on registryId default value EE-5394 (#8841)

pull/8851/head
matias-portainer 2023-04-26 10:24:45 -03:00 committed by GitHub
parent 80a3a5f16e
commit 7ed8e9e167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function RegistryModalService(RegistryService) {
const defaultValue = _.get(registryModel, 'Registry.Id', 0);
const registryId = await selectRegistry(registries, defaultValue);
if (!registryId) {
if (registryId === undefined) {
return null;
}