Browse Source

Merge branch 'main' into staging

sunguroku 5 years ago
parent
commit
e8e1a7a746
1 changed files with 3 additions and 1 deletions
  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}