Fix two bugs
Fix the flow types for the search bar Fix that sometimes the UI would not update in the sidebar
This commit is contained in:
parent
c9ec79442b
commit
08aff120bd
3 changed files with 18 additions and 17 deletions
|
|
@ -61,15 +61,16 @@ class App extends React.PureComponent<AppProps & Classes, AppState> {
|
|||
search: "",
|
||||
error: null
|
||||
};
|
||||
this.controlMap = (search: string) =>
|
||||
<ControlMap width={1000} height={700} zoom={0}
|
||||
layers={this.props.config.layers}
|
||||
controls={this.props.config.controls}
|
||||
onChangeControl={this.changeControl}
|
||||
search={search}
|
||||
/>;
|
||||
}
|
||||
|
||||
controlMap = (search: string) =>
|
||||
<ControlMap width={1000} height={700} zoom={0}
|
||||
layers={this.props.config.layers}
|
||||
controls={this.props.config.controls}
|
||||
onChangeControl={this.changeControl}
|
||||
search={search}
|
||||
/>;
|
||||
|
||||
get topics(): Topics {
|
||||
return Array.isArray(this.props.config.topics) ?
|
||||
Object.assign({}, ...this.props.config.topics) : this.props.config.topics;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue