Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit bc680a9

Browse files
author
Leonardo Chaia
committed
fix: fixed tags when no registries are configured
1 parent 4a9d58c commit bc680a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/daemon-tools/image-selector-card/image-selector-card.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class ImageSelectorCardComponent implements OnInit, OnDestroy, ControlVal
158158
repo = repo.includes(':') ? repo.split(':')[0] : repo;
159159
return this.settingsService.getRegistrySettingsForImage(this.image)
160160
.pipe(
161-
switchMap(settings => settings.allowsCatalog ? this.registryService.getRepoTags(settings.url, repo) : of([])),
161+
switchMap(settings => settings && settings.allowsCatalog ? this.registryService.getRepoTags(settings.url, repo) : of([])),
162162
map(tags => {
163163
return this.imageTags = tags;
164164
})

0 commit comments

Comments
 (0)