Skip to content

Commit

Permalink
Allowed ObjectSelector to work in forms (#19761)
Browse files Browse the repository at this point in the history
  • Loading branch information
SB2DD authored Feb 14, 2024
1 parent 226dad3 commit 2dc9d26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ha-form/compute-initial-ha-form-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const computeInitialHaFormData = (
"icon" in selector ||
"template" in selector ||
"text" in selector ||
"theme" in selector
"theme" in selector ||
"object" in selector
) {
data[field.name] = "";
} else if ("number" in selector) {
Expand Down

0 comments on commit 2dc9d26

Please sign in to comment.