correctly prepending number for add tags special menu item when filtering. fixes #211
This commit is contained in:
parent
555e2b1e7d
commit
6f183c2b92
1 changed files with 4 additions and 2 deletions
|
|
@ -102,9 +102,11 @@ async function searchPrompt(allPrompts, tabId, tabType){
|
|||
max_num_el = 9;
|
||||
first_num_el = 1;
|
||||
filteredData = ensurePromptAddTagsFirst(filteredData);
|
||||
if (!filteredData[0].numberPrepended) {
|
||||
filteredData[0].numberPrepended = 'true';
|
||||
filteredData[0].label = '0. ' + filteredData[0].label;
|
||||
}
|
||||
}
|
||||
Array.from(filteredData).slice(first_num_el, max_num_el).forEach((item, index) => {
|
||||
let number = (index < 9) ? (index + 1).toString() : '0';
|
||||
// Check if the number is already prepended to avoid duplication
|
||||
|
|
|
|||
Loading…
Reference in a new issue