From e826dbb7b923976e21d06daf2e8c0e24802ff45e Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 6 Apr 2023 16:15:17 +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 7db6d2e..38a5e30 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -764,7 +764,7 @@ class CCPMethodEditorController extends HTMLElement{ renderCategoryHints(){ const ml = document.querySelector("d4s-ccp-methodlist") - const cats = ml ? [...s].concat(ml.getCategoryHints()) : [...s] + const cats = ml.getCategoryHints() if(cats.indexOf("Uncategorized") === -1) cats.push("Uncategorized") return `