浏览代码

Merge branch '0.4.0-create-namespace' into main

sunguroku 5 年之前
父节点
当前提交
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}