@opengis/admin 0.1.39 → 0.1.40
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/package.json
CHANGED
|
@@ -73,9 +73,9 @@ export default async function getTableData(req) {
|
|
|
73
73
|
|
|
74
74
|
const order = columnList.includes(orderColumn) && orderColumn?.length ? `order by ${orderColumn} ${query.desc || orderDir === 'desc' ? 'desc' : ''}` : '';
|
|
75
75
|
|
|
76
|
-
const state = loadTable.filterState && query.state ? loadTable.filterState?.find((el) => el.
|
|
76
|
+
const state = loadTable.filterState && query.state ? loadTable.filterState?.find((el) => el.name === query.state)?.sql : null;
|
|
77
77
|
|
|
78
|
-
const custom = loadTable.filterCustom && query.custom ? loadTable.filterCustom?.find((el) => el.
|
|
78
|
+
const custom = loadTable.filterCustom && query.custom ? loadTable.filterCustom?.find((el) => el.name === query.custom)?.sql : null;
|
|
79
79
|
|
|
80
80
|
const search = loadTable.meta?.search && query.search ? `(${loadTable.meta?.search.split(',').map(el => `${el} ilike '%${query.search}%'`).join(' or ')})` : null;
|
|
81
81
|
|