Prevent computeDomain() call if no entity selected (#10166)

This commit is contained in:
Philip Allgaier 2021-10-06 14:07:18 +02:00 committed by GitHub
parent ec21f4c2c6
commit b226b20e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ export class HuiGenericEntityRowEditor
return html``;
}
const domain = computeDomain(this._config.entity);
const domain = computeDomain(this._entity);
return html`
<div class="card-config">