@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
|
@@ -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.
|
|
154
|
+
if (query.sel) {
|
|
155
155
|
const clsData = await getSelectVal({
|
|
156
156
|
pg,
|
|
157
|
-
name: query.
|
|
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 }));
|