@opengis/fastify-table 1.2.38 → 1.2.39

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -151,10 +151,10 @@ export default async function suggest(req) {
151
151
  const ids = dataNew.map((el) => el.id);
152
152
  const data = dataNew.concat((/* dataNew1 || */[]).filter((el) => !ids?.includes(el.id)));
153
153
 
154
- if (query.cls) {
154
+ if (query.sel) {
155
155
  const clsData = await getSelectVal({
156
156
  pg,
157
- name: query.cls,
157
+ name: query.sel,
158
158
  values: data.map((el) => el.id),
159
159
  });
160
160
  data.forEach(el => Object.assign(el, { text: clsData?.[el.id || ''] || el.id }));