Fix summary update
This commit is contained in:
parent
35fdbf3352
commit
ba8460c65b
@ -38,7 +38,6 @@ class Accounts extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
accountsNodes: null,
|
|
||||||
addressBook: false,
|
addressBook: false,
|
||||||
newDialog: false,
|
newDialog: false,
|
||||||
sortOrder: '',
|
sortOrder: '',
|
||||||
@ -47,11 +46,10 @@ class Accounts extends Component {
|
|||||||
show: false
|
show: false
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount () {
|
componentWillMount () {
|
||||||
window.setTimeout(() => {
|
window.setTimeout(() => {
|
||||||
const accountsNodes = this.renderAccounts();
|
this.setState({ show: true });
|
||||||
this.setState({ show: true, accountsNodes });
|
}, 100);
|
||||||
}, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
@ -60,7 +58,7 @@ class Accounts extends Component {
|
|||||||
{ this.renderNewDialog() }
|
{ this.renderNewDialog() }
|
||||||
{ this.renderActionbar() }
|
{ this.renderActionbar() }
|
||||||
|
|
||||||
{ this.state.show ? this.state.accountsNodes : this.renderLoading() }
|
{ this.state.show ? this.renderAccounts() : this.renderLoading() }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user