Skip to content

Commit 2696fbc

Browse files
lsongsusexingzhang-suse
authored andcommitted
Fix: unable to edit an empty repository list in an existing registry
1 parent 00e69d4 commit 2696fbc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/sbombastic-image-vulnerability-scanner/edit/sbombastic.rancher.io.registry.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
99
import { Checkbox } from '@components/Form/Checkbox';
1010
import { MANAGEMENT, NAMESPACE } from '@shell/config/types';
1111
import {
12-
REGISTRY_DEFAULT_URI,
1312
REGISTRY_TYPE_OPTIONS,
1413
SCAN_INTERVAL_OPTIONS, SCAN_INTERVALS
1514
} from "@sbombastic-image-vulnerability-scanner/constants/scan-interval-options";
@@ -196,7 +195,7 @@ export default {
196195
:multiple="true"
197196
:label="t('imageScanner.registries.configuration.cru.scan.repoName')"
198197
:placeholder="t('imageScanner.registries.configuration.cru.scan.placeholder')"
199-
:options="value.spec.repositories"
198+
:options="value.spec.repositories || []"
200199
:disabled="mode==='view'"
201200
@update:value="update"
202201
/>

0 commit comments

Comments
 (0)