Explorar o código

Merge branch '0.4.0-create-namespace' into main

sunguroku %!s(int64=5) %!d(string=hai) anos
pai
achega
d93c40c0dc
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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
           ref={this.parentRef}
           onClick={() => {
-            this.props.refreshOptions();
+            if (this.props.refreshOptions) {
+              this.props.refreshOptions();
+            }
             this.setState({ expanded: !this.state.expanded });
           }}
           expanded={this.state.expanded}