mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix crash in PersistentVolumeDetails (#6691)
Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
ad31b73264
commit
5c69b273b1
@ -43,7 +43,7 @@ export interface PersistentVolumeSpec {
|
||||
capacity?: Partial<Record<string, string>>;
|
||||
flexVolume?: {
|
||||
driver: string; // ceph.rook.io/rook-ceph-system,
|
||||
options: {
|
||||
options?: {
|
||||
clusterNamespace: string; // rook-ceph,
|
||||
image: string; // pvc-c5d7c485-9f1b-11e8-b0ea-9600000e54fb,
|
||||
pool: string; // replicapool,
|
||||
|
||||
@ -94,7 +94,7 @@ export class PersistentVolumeDetails extends React.Component<PersistentVolumeDet
|
||||
{flexVolume.driver}
|
||||
</DrawerItem>
|
||||
{
|
||||
Object.entries(flexVolume.options).map(([name, value]) => (
|
||||
Object.entries(flexVolume.options ?? {}).map(([name, value]) => (
|
||||
<DrawerItem key={name} name={startCase(name)}>
|
||||
{value}
|
||||
</DrawerItem>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user