@opengis/fastify-table 1.2.78 → 1.2.79
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
|
@@ -149,7 +149,7 @@ export default async function suggest(req) {
|
|
|
149
149
|
const { rows: dataNew } = await pg.query(sqlSuggest, query.key ? [`${query.key.toLowerCase()}`] : []);
|
|
150
150
|
// const { rows: dataNew1 } = dataNew.length < limit ? await pg.query(sqlSuggest, query.key ? [`${query.key}`] : []) : {};
|
|
151
151
|
const ids = dataNew.map((el) => el.id);
|
|
152
|
-
const data = dataNew.concat((/* dataNew1 || */[]).filter(
|
|
152
|
+
const data = dataNew.concat((/* dataNew1 || */[]).filter(el => !ids?.includes(el.id))).filter(el => el.text);
|
|
153
153
|
|
|
154
154
|
if (query.sel) {
|
|
155
155
|
const clsData = await getSelectVal({
|