|
@@ -157,8 +157,9 @@ export default {
|
|
|
async initForm() {
|
|
|
const form = this.fields.reduce(async (init, current) => {
|
|
|
init = await init;
|
|
|
- init[current.name] = current.defaultValue || null;
|
|
|
-
|
|
|
+ init[current.name] =
|
|
|
+ current.defaultValue !== undefined ? current.defaultValue : null;
|
|
|
+ console.log(current.name, current.defaultValue);
|
|
|
if (current.options && isPromise(current.options)) {
|
|
|
current.options = await current.options;
|
|
|
}
|