cleanup projects types
This commit is contained in:
parent
e6cac42dbd
commit
38170b39bc
5 changed files with 12 additions and 82 deletions
|
@ -58,12 +58,10 @@ const tagsByCategory = ref({} as { [category: string]: Record<string, string> })
|
|||
* Handles updating the displayed tags in the list
|
||||
*/
|
||||
const onLoadTags = () => {
|
||||
if (!config.tags) {
|
||||
tagsByCategory.value = null as any
|
||||
} else {
|
||||
if (!!config.tags) {
|
||||
tagsByCategory.value = { 'NoCategory': {}}
|
||||
Object.keys(config.tags).forEach(id => {
|
||||
const tag = config.tags[id]
|
||||
const tag = config.tags![id]
|
||||
if (!!tag.category) {
|
||||
if (!tagsByCategory.value[tag.category]) {
|
||||
tagsByCategory.value[tag.category] = {}
|
||||
|
@ -73,6 +71,8 @@ const onLoadTags = () => {
|
|||
tagsByCategory.value['NoCategory'][id] = tag.displayName || id
|
||||
}
|
||||
})
|
||||
} else {
|
||||
tagsByCategory.value = null as any
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue