From 207ecc31c96f5cb419dd4f16d697c2fcc0411672 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 6 Apr 2023 16:14:19 +0200 Subject: [PATCH] add category hints from methodlist --- ccp/js/methodeditorcontroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index d14f970..7db6d2e 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -763,9 +763,9 @@ class CCPMethodEditorController extends HTMLElement{ } renderCategoryHints(){ - const s = new Set(["Uncategorized", this.getCurrentCategory()]) const ml = document.querySelector("d4s-ccp-methodlist") const cats = ml ? [...s].concat(ml.getCategoryHints()) : [...s] + if(cats.indexOf("Uncategorized") === -1) cats.push("Uncategorized") return ` ${cats.map(c=>``)}