Remove duplicate processes from set log levels UI

This commit is contained in:
aboyko
2024-01-04 13:51:21 -05:00
parent 17ddbfb0de
commit 39bad4f173

View File

@@ -47,8 +47,10 @@ async function setLogLevelHandler() {
const slash = p.action.lastIndexOf('/');
if (slash>=0) {
const choiceLabel = p.label;
choiceMap.set(choiceLabel, p);
choices.push(choiceLabel);
if (!choiceMap.has(choiceLabel)) {
choiceMap.set(choiceLabel, p);
choices.push(choiceLabel);
}
}
});
if (choices) {