diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index 1923476..cf95ad6 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().length === 0){ + if(this.#current.metadata.filter(md=>md.role === "category").length === 0){ this.#current.metadata.push({ role : "category", title : val}) } }