Selaa lähdekoodia

Merge pull request #577 from smiclea/fix-crash

Fix a crash when setting a property to null
Nashwan Azhari 5 vuotta sitten
vanhempi
sitoutus
4a6b97d7e3
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/components/organisms/WizardSummary/WizardSummary.tsx

+ 2 - 2
src/components/organisms/WizardSummary/WizardSummary.tsx

@@ -310,7 +310,7 @@ class WizardSummary extends React.Component<Props> {
     const objectKeys: string[] = Object.keys(options).filter(key => typeof options[key] === 'object'
       && key !== INSTANCE_OSMORPHING_MINION_POOL_MAPPINGS)
 
-    return objectKeys.map(key => (
+    return objectKeys.map(key => (options[key] != null ? (
       <ObjectTable key={key}>
         <ObjectTableTitle>
           {LabelDictionary.get(key)}
@@ -337,7 +337,7 @@ class WizardSummary extends React.Component<Props> {
           )
         })}
       </ObjectTable>
-    ))
+    ) : null))
   }
 
   renderMinionPoolMapping() {