Merged too fast for Bram :) Code improv (#11632)

This commit is contained in:
Zack Barett 2022-02-09 17:45:31 -06:00 committed by GitHub
parent a0aed9112c
commit d38a8a317e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,8 +52,7 @@ export class HaForm extends LitElement implements HaFormElement {
if ( if (
!selectorImported && !selectorImported &&
changedProperties.has("schema") && changedProperties.has("schema") &&
this.schema && this.schema?.some((item) => "selector" in item)
this.schema.some((item) => "selector" in item)
) { ) {
selectorImported = true; selectorImported = true;
import("../ha-selector/ha-selector"); import("../ha-selector/ha-selector");