Skip to content

Commit

Permalink
Ensure the theme is insta-loaded from local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Coleman committed Mar 5, 2019
1 parent ddead74 commit e5696dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/src/core/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default function({ store }) {
},
};

const fromState = pick(store.getState(), 'layout', 'ui', 'selectedPanel');
const fromState = pick(store.getState(), 'layout', 'ui', 'selectedPanel', 'theme');

const initial = {
ui: {
Expand All @@ -192,7 +192,7 @@ export default function({ store }) {
theme: themes.light,
};

const state = merge(fromState, initial);
const state = merge(initial, fromState);

return { api, state };
}

1 comment on commit e5696dc

@vercel
Copy link

@vercel vercel bot commented on e5696dc Mar 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Builds rate limit exceeded (0 of 100 remaining). Try again in 24h

Please sign in to comment.