feat: fully working hot reload for weather and search

This commit is contained in:
David Ralph
2021-04-14 16:18:01 +01:00
parent 6137139586
commit ca2ce43f2f
6 changed files with 8 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ export default class Widgets extends React.PureComponent {
componentDidMount() {
EventBus.on('refresh', (data) => {
if (data === 'order') {
if (data === 'widgets') {
this.setState({
order: JSON.parse(localStorage.getItem('order'))
});