fix: exception error (#422)

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yiya Chen 2025-07-24 12:37:56 +08:00 committed by GitHub
parent 3d8a6bba7e
commit b6ffb3e9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,8 +53,6 @@ export default {
}, },
namespaceOptions() { namespaceOptions() {
if (this.availableNamespaces.length === 0) return [];
const allSelected = const allSelected =
this.namespaces.length === this.filteredNamespaces.length && this.namespaces.length === this.filteredNamespaces.length &&
this.filteredNamespaces.every((ns) => this.namespaces.includes(ns)); this.filteredNamespaces.every((ns) => this.namespaces.includes(ns));