mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Ensure grid options always return an object (#25760)
This commit is contained in:
parent
af6911e848
commit
01d2ef13c6
@ -96,7 +96,9 @@ export class HuiCard extends ReactiveElement {
|
||||
if (!this._element) return {};
|
||||
|
||||
if (this._element.getGridOptions) {
|
||||
return this._element.getGridOptions();
|
||||
const options = this._element.getGridOptions();
|
||||
// Some custom cards might return undefined, so we ensure we return an object
|
||||
return options || {};
|
||||
}
|
||||
if (this._element.getLayoutOptions) {
|
||||
// Disabled for now to avoid spamming the console, need to be re-enabled when hui-card performance are fixed
|
||||
|
Loading…
x
Reference in New Issue
Block a user