mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix JS notification error on initialization.
The last notification is initially null resulting in an exception being thrown on startup.
This commit is contained in:
parent
d0f545c247
commit
0b751949ae
@ -24,10 +24,12 @@
|
|||||||
var toast = this.$.toast;
|
var toast = this.$.toast;
|
||||||
var notification = notificationStore.lastNotification;
|
var notification = notificationStore.lastNotification;
|
||||||
|
|
||||||
|
if (notification) {
|
||||||
this.lastId = notification.id;
|
this.lastId = notification.id;
|
||||||
toast.text = notification.message;
|
toast.text = notification.message;
|
||||||
toast.show();
|
toast.show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
}, storeListenerMixIn));
|
}, storeListenerMixIn));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user