From 595641dcc93cfa61d16ebc3995c717df877b74bd Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Fri, 1 Nov 2024 13:12:56 +0100 Subject: [PATCH] chore: pass search pad tokens as is The `search-pad` is now compatible with the new syntax. --- lib/features/search/BpmnSearchProvider.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lib/features/search/BpmnSearchProvider.js b/lib/features/search/BpmnSearchProvider.js index 5efff1503..02fa35344 100644 --- a/lib/features/search/BpmnSearchProvider.js +++ b/lib/features/search/BpmnSearchProvider.js @@ -79,17 +79,6 @@ BpmnSearchProvider.prototype.find = function(pattern) { */ function toSearchPadResult(result) { - /** - * @param {SearchToken} token - * - * @return {SearchPadToken} - */ - function toSearchPadToken(token) { - return { - [ token.match ? 'matched' : 'normal' ]: token.value - }; - } - const { item: { element @@ -99,7 +88,7 @@ function toSearchPadResult(result) { return { element, - primaryTokens: map(tokens.label, toSearchPadToken), - secondaryTokens: map(tokens.id, toSearchPadToken) + primaryTokens: tokens.label, + secondaryTokens: tokens.id }; } \ No newline at end of file