add category hints from methodlist
This commit is contained in:
parent
e358d7ab50
commit
682212f1bc
|
@ -586,7 +586,7 @@ class CCPMethodEditorController extends HTMLElement{
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
const val = ev.target.value
|
const val = ev.target.value
|
||||||
ev.target.value = null
|
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.#current.metadata.push({ role : "category", title : val})
|
||||||
this.reRenderCategories()
|
this.reRenderCategories()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue