Просмотр исходного кода

Merge branch '0.4.0-create-namespace' into main

sunguroku 5 лет назад
Родитель
Сommit
d93c40c0dc
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      dashboard/src/components/Selector.tsx

+ 3 - 1
dashboard/src/components/Selector.tsx

@@ -132,7 +132,9 @@ export default class Selector extends Component<PropsType, StateType> {
         <MainSelector
         <MainSelector
           ref={this.parentRef}
           ref={this.parentRef}
           onClick={() => {
           onClick={() => {
-            this.props.refreshOptions();
+            if (this.props.refreshOptions) {
+              this.props.refreshOptions();
+            }
             this.setState({ expanded: !this.state.expanded });
             this.setState({ expanded: !this.state.expanded });
           }}
           }}
           expanded={this.state.expanded}
           expanded={this.state.expanded}