From 3aaf0b2b6069f8f59f953f10131590f6833d6f94 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 25 Jul 2023 09:14:13 -0600 Subject: [PATCH] Api: More missing changes from SearchMixin.remoteQuery() / static options from json file --- api/js/etemplate/Et2Link/Et2LinkSearch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkSearch.ts b/api/js/etemplate/Et2Link/Et2LinkSearch.ts index 40da830167..efebaec920 100644 --- a/api/js/etemplate/Et2Link/Et2LinkSearch.ts +++ b/api/js/etemplate/Et2Link/Et2LinkSearch.ts @@ -70,13 +70,14 @@ export class Et2LinkSearch extends Et2Select { if(!this.query(request, this)) { - return Promise.resolve(); + return Promise.resolve([]); } } return request.then((result) => { const entries = cleanSelectOptions(result); this.processRemoteResults(entries); + return entries; }); }