From f35de819a74c2862b1da43b8f08bb4ab403bc9a9 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 25 Jul 2023 10:39:13 +0200 Subject: [PATCH] adapt Et2LinkSearch.remoteQuery() to Nathans change not run cleanSelectOptions() in Et2Select.processRemoteResults() any more @Nathan: not sure if this needs to be applied in more places, or your change should detect it needs running ... --- api/js/etemplate/Et2Link/Et2LinkSearch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkSearch.ts b/api/js/etemplate/Et2Link/Et2LinkSearch.ts index 9c1d62e58c..3c17a17192 100644 --- a/api/js/etemplate/Et2Link/Et2LinkSearch.ts +++ b/api/js/etemplate/Et2Link/Et2LinkSearch.ts @@ -11,6 +11,7 @@ import {css} from "@lion/core"; import {Et2Select} from "../Et2Select/Et2Select"; import {Et2LinkAppSelect} from "./Et2LinkAppSelect"; import {Et2Link} from "./Et2Link"; +import {cleanSelectOptions} from "../Et2Select/FindSelectOptions"; export class Et2LinkSearch extends Et2Select { @@ -74,7 +75,8 @@ export class Et2LinkSearch extends Et2Select } return request.then((result) => { - this.processRemoteResults(result); + const entries = cleanSelectOptions(result); + this.processRemoteResults(entries); }); }