add category hints from methodlist

This commit is contained in:
dcore94 2023-04-06 16:45:01 +02:00
parent 67f98e328a
commit eb1c5d40f2
1 changed files with 1 additions and 1 deletions

View File

@ -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})
}
}