From 390b65cdb7f0b141d5b61c8bfe7847ce5a36980c Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 6 Apr 2023 15:22:54 +0200 Subject: [PATCH] add catery input with hints --- ccp/js/methodeditorcontroller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index 265baf1..687c1dd 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -753,10 +753,11 @@ class CCPMethodEditorController extends HTMLElement{ } renderCategoryHints(){ - const cats = ["Uncategorized", this.getCurrentCategory()] + const cats1 = ["Uncategorized", this.getCurrentCategory()] + const cats = [...new Set(cats)] return ` - ${cats.map(c=>``} + ${cats.map(c=>``)} ` }