Fix version display

This commit is contained in:
Jannis Mattheis 2018-10-21 20:33:20 +02:00
parent 42f1c34863
commit 120e41ff91
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Layout extends React.Component<WithStyles<'content'> & Stores<'currentUser
public componentDidMount() { public componentDidMount() {
if (this.version === Layout.defaultVersion) { if (this.version === Layout.defaultVersion) {
axios.get(config.get('url') + 'version').then((resp: AxiosResponse<IVersion>) => { axios.get(config.get('url') + 'version').then((resp: AxiosResponse<IVersion>) => {
this.setState({...this.state, version: resp.data.version}); this.version = resp.data.version;
}); });
} }
} }