1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

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

This commit is contained in:
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

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;
}