diff --git a/frontend/scenes/Document/Document.js b/frontend/scenes/Document/Document.js index efa895766..edcf7c251 100644 --- a/frontend/scenes/Document/Document.js +++ b/frontend/scenes/Document/Document.js @@ -36,7 +36,7 @@ type Props = { props: Props; state = { - loading: false, + isLoading: false, }; componentDidMount() { @@ -84,9 +84,9 @@ type Props = { const document = this.document; if (!document) return; - this.setState({ loading: true }); + this.setState({ isLoading: true }); await document.save(); - this.setState({ loading: false }); + this.setState({ isLoading: false }); this.props.ui.disableEditMode(); if (redirect) { @@ -95,11 +95,11 @@ type Props = { }; onImageUploadStart() { - this.setState({ loading: true }); + this.setState({ isLoading: true }); } onImageUploadStop() { - this.setState({ loading: false }); + this.setState({ isLoading: false }); } onChange = text => { @@ -120,7 +120,7 @@ type Props = { return ( {titleText && } - {this.state.loading && } + {this.state.isLoading && } {isFetching &&