Explicitly set initialisation state.
This commit is contained in:
parent
da8b1ff1cd
commit
98ac3dd19b
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,8 @@ export default React.createClass({
|
||||||
* Component initialisation is only complete when this function has resolved
|
* Component initialisation is only complete when this function has resolved
|
||||||
*/
|
*/
|
||||||
setScalarToken() {
|
setScalarToken() {
|
||||||
|
this.setState({initialising: true});
|
||||||
|
|
||||||
if (!this.isScalarUrl(this.props.url)) {
|
if (!this.isScalarUrl(this.props.url)) {
|
||||||
console.warn('Non-scalar widget, not setting scalar token!', url);
|
console.warn('Non-scalar widget, not setting scalar token!', url);
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue