ywana-core8 0.0.413 → 0.0.414
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentType.js +1 -1
- package/src/domain/TablePage.js +1 -4
package/package.json
CHANGED
@@ -88,7 +88,7 @@ export class ContentType {
|
|
88
88
|
const entries = Object.entries(this._schema)
|
89
89
|
|
90
90
|
const form = entries.reduce((form, [id, field]) => {
|
91
|
-
form[id] = Object.assign({}, field, { value: data[id] })
|
91
|
+
form[id] = Object.assign({}, field, { value: data[id] || field.defValue })
|
92
92
|
return form
|
93
93
|
}, {})
|
94
94
|
|
package/src/domain/TablePage.js
CHANGED
@@ -273,10 +273,7 @@ const TableFilters = (props) => {
|
|
273
273
|
if (fs[key].filter === false) delete fs[key]
|
274
274
|
}
|
275
275
|
}
|
276
|
-
|
277
|
-
if (filterSchema[key].defValue) {
|
278
|
-
change({ [key] : filterSchema[key].defValue })
|
279
|
-
}
|
276
|
+
|
280
277
|
}
|
281
278
|
}
|
282
279
|
//Object.values(filterSchema).forEach(field => field.section = null)
|