Skip to content

Commit

Permalink
Update src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
piitaya and bramkragten authored Oct 23, 2023
1 parent 2db4f93 commit 3e0c462
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class HaCardConditionEditor extends LitElement {

protected willUpdate(changedProperties: PropertyValues): void {
if (changedProperties.has("condition")) {
const validator = this._editor && this._editor.validateUIConfig;
const validator = this._editor?.validateUIConfig;
if (validator) {
try {
validator(this.condition, this.hass);
Expand Down

0 comments on commit 3e0c462

Please sign in to comment.