mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Guard for undefined item in quick bar (#9259)
This commit is contained in:
parent
5958eb9a55
commit
f7ef8180e4
@ -223,6 +223,9 @@ export class QuickBar extends LitElement {
|
||||
}
|
||||
|
||||
private _renderItem(item: QuickBarItem, index?: number) {
|
||||
if (!item) {
|
||||
return undefined;
|
||||
}
|
||||
return isCommandItem(item)
|
||||
? this._renderCommandItem(item, index)
|
||||
: this._renderEntityItem(item as EntityItem, index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user