mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 10:29:37 +00:00
Fix Suggested Value in HA-Form (#13173)
This commit is contained in:
@@ -6,7 +6,7 @@ export const computeInitialHaFormData = (
|
||||
): Record<string, any> => {
|
||||
const data = {};
|
||||
schema.forEach((field) => {
|
||||
if (field.description?.suggested_value) {
|
||||
if (field.description?.suggested_value !== undefined) {
|
||||
data[field.name] = field.description.suggested_value;
|
||||
} else if ("default" in field) {
|
||||
data[field.name] = field.default;
|
||||
|
||||
Reference in New Issue
Block a user