From 5d91a135ed479b67578c9b453cb77f853758fcc8 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Fri, 8 Nov 2024 11:30:05 +0800 Subject: [PATCH] fix storage class page broken if get unknown provisioner (cherry picked from commit e6796a6fc0cffe03f47f6081c09469d59b97faf9) --- pkg/harvester/models/harvester/storage.k8s.io.storageclass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/harvester/models/harvester/storage.k8s.io.storageclass.js b/pkg/harvester/models/harvester/storage.k8s.io.storageclass.js index 78f8b0b11f5..09c1a512358 100644 --- a/pkg/harvester/models/harvester/storage.k8s.io.storageclass.js +++ b/pkg/harvester/models/harvester/storage.k8s.io.storageclass.js @@ -55,7 +55,7 @@ export default class HciStorageClass extends StorageClass { key = `harvester.storage.storageClass.lvm.label`; } - return this.$rootGetters['i18n/t'](key); + return key ? this.$rootGetters['i18n/t'](key) : null; } get isLonghornV2() {