Преглед на файлове

settings section breaking

sunguroku преди 5 години
родител
ревизия
0c1999b0eb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      dashboard/src/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx

@@ -32,7 +32,7 @@ export default class SettingsSection extends Component<PropsType, StateType> {
 
 
   componentDidMount() {
   componentDidMount() {
     let image = this.props.currentChart.config.image;
     let image = this.props.currentChart.config.image;
-    if (image.repository) {
+    if (image?.repository) {
       this.setState({ selectedImageUrl: image.repository });
       this.setState({ selectedImageUrl: image.repository });
     }
     }
   }
   }