Stop app blowing up on refresh on settings page
This commit is contained in:
parent
4f068afa98
commit
6eb9c5cc66
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class SettingsPage extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
const { daemonSettings } = this.props;
|
const { daemonSettings } = this.props;
|
||||||
|
|
||||||
if (!daemonSettings) {
|
if (!daemonSettings || Object.keys(daemonSettings).length === 0) {
|
||||||
return (
|
return (
|
||||||
<main className="main--single-column">
|
<main className="main--single-column">
|
||||||
<span className="empty">{__("Failed to load settings.")}</span>
|
<span className="empty">{__("Failed to load settings.")}</span>
|
||||||
|
|
Loading…
Reference in a new issue