From 1a8fe960adee6b7276f9190ee383f29b0620a992 Mon Sep 17 00:00:00 2001 From: Pascal Date: Mon, 6 Jan 2025 16:33:22 +0100 Subject: [PATCH] process_increment_ok --- src/pages/process/process.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/process/process.ts b/src/pages/process/process.ts index 9de7994..188d0a3 100755 --- a/src/pages/process/process.ts +++ b/src/pages/process/process.ts @@ -188,8 +188,17 @@ function populateAutocompleteList(select: HTMLSelectElement, query: string, drop let options_to_show; - if (dropdown) options_to_show = autocomplete_options; - else options_to_show = autocomplete(query, autocomplete_options); + if (dropdown) { + let messagingCounter = 1; + options_to_show = autocomplete_options.map(option => { + if (option === 'messaging') { + return `messaging ${messagingCounter++}`; + } + return option; + }); + } else { + options_to_show = autocomplete(query, autocomplete_options); + } const wrapper = select.parentNode; const input_search = wrapper?.querySelector('.search-container');