1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix crash in PersistentVolumeDetails

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-01 10:45:52 -05:00
parent 33e6771da3
commit 2c699b9628
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export interface PersistentVolumeSpec {
capacity?: Partial<Record<string, string>>; capacity?: Partial<Record<string, string>>;
flexVolume?: { flexVolume?: {
driver: string; // ceph.rook.io/rook-ceph-system, driver: string; // ceph.rook.io/rook-ceph-system,
options: { options?: {
clusterNamespace: string; // rook-ceph, clusterNamespace: string; // rook-ceph,
image: string; // pvc-c5d7c485-9f1b-11e8-b0ea-9600000e54fb, image: string; // pvc-c5d7c485-9f1b-11e8-b0ea-9600000e54fb,
pool: string; // replicapool, pool: string; // replicapool,

View File

@ -94,7 +94,7 @@ export class PersistentVolumeDetails extends React.Component<PersistentVolumeDet
{flexVolume.driver} {flexVolume.driver}
</DrawerItem> </DrawerItem>
{ {
Object.entries(flexVolume.options).map(([name, value]) => ( Object.entries(flexVolume.options ?? {}).map(([name, value]) => (
<DrawerItem key={name} name={startCase(name)}> <DrawerItem key={name} name={startCase(name)}>
{value} {value}
</DrawerItem> </DrawerItem>