From a982eb8be2a6e1374fa1fb11df737f8916b296b9 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 6 Apr 2023 16:19:14 +0200 Subject: [PATCH] add category hints from methodlist --- ccp/js/methodlistcontroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccp/js/methodlistcontroller.js b/ccp/js/methodlistcontroller.js index 79c82ed..e2341cd 100644 --- a/ccp/js/methodlistcontroller.js +++ b/ccp/js/methodlistcontroller.js @@ -200,7 +200,7 @@ class CCPMethodList extends HTMLElement{ if(this.#data === null) return []; for(let i=0; i < this.#data.length; i++){ const cat = this.#data[i].metadata.filter(md=>md.role === "category").map(md=>md.title) - s.add(cat) + cat.forEach(c=>s.add(c)) } return [...s] }