menu items numbering fixed

This commit is contained in:
mic 2025-01-11 23:14:12 +01:00
parent decb529cb0
commit 575437a584

View file

@ -148,7 +148,7 @@ async function searchPrompt(allPrompts, tabId, tabType){
// } // }
// } // }
Array.from(filteredData).slice(first_num_el, max_num_el).forEach((item, index) => { Array.from(filteredData).slice(first_num_el, max_num_el).forEach((item, index) => {
let number = (index < 9) ? (index + 1).toString() : '0'; let number = (index + first_num_el).toString();
// Check if the number is already prepended to avoid duplication // Check if the number is already prepended to avoid duplication
if (!item.numberPrepended) { if (!item.numberPrepended) {
item.label = `${number}. ${item.label}`; item.label = `${number}. ${item.label}`;