Skip to content

Commit 372d060

Browse files
committed
initialize _instantValue
1 parent 000f969 commit 372d060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter_form_builder/lib/src/form_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class FormBuilderState extends State<FormBuilder> {
170170
} else {
171171
// ignore: invalid_use_of_protected_member
172172
field.setValue(
173-
_instantValue[name] ?? field.initialValue,
173+
_instantValue[name] ??= field.initialValue,
174174
populateForm: false,
175175
);
176176
}

0 commit comments

Comments
 (0)