Fix object selector not displayed (#26007)

This commit is contained in:
Paul Bottein 2025-06-30 18:15:37 +02:00
parent 6e84fee791
commit 57da4d3499
No known key found for this signature in database

View File

@ -122,11 +122,7 @@ export class HaObjectSelector extends LitElement {
}
protected render() {
if (!this.selector.object) {
return nothing;
}
if (this.selector.object.fields) {
if (this.selector.object?.fields) {
if (this.selector.object.multiple) {
const items = ensureArray(this.value ?? []);
return html`