ywana-core8 0.0.400 → 0.0.403
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +7 -4
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -263,10 +263,13 @@ const TableFilters = (props) => {
|
|
263
263
|
const filterSchema = useMemo(() => {
|
264
264
|
const filterSchema = Object.assign({}, schema)
|
265
265
|
for (var key in filterSchema) {
|
266
|
-
if (filterSchema[key].filter === false)
|
267
|
-
|
268
|
-
|
269
|
-
|
266
|
+
if (filterSchema[key].filter === false) {
|
267
|
+
delete filterSchema[key]
|
268
|
+
} else if (filterSchema[key].type === TYPES.ENTITY) {
|
269
|
+
const fs = filterSchema[key].item
|
270
|
+
for (var key in fs) {
|
271
|
+
if (fs[key].filter === false) delete fs[key]
|
272
|
+
}
|
270
273
|
}
|
271
274
|
}
|
272
275
|
Object.values(filterSchema).forEach(field => field.section = null)
|