From 682212f1bc052b099764277c56d40c8cd0871897 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 6 Apr 2023 17:12:52 +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 ce3cb0e..b6f8778 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -586,7 +586,7 @@ class CCPMethodEditorController extends HTMLElement{ ev.stopPropagation() const val = ev.target.value ev.target.value = null - if(this.#current.metadata.filter(md=>md.role === "category").length === 0){ + if(this.#current.metadata.filter(md=>md.role === "category" && md.title === val).length === 0){ this.#current.metadata.push({ role : "category", title : val}) this.reRenderCategories() }