fix tag resolving
This commit is contained in:
parent
21bafe1cfe
commit
2c928ca0d1
@ -40,12 +40,12 @@ class Resolver {
|
||||
|
||||
}
|
||||
|
||||
componentsByTag(str, type, exact = true) {
|
||||
componentsByTag(str, type = 'any', exact = true) {
|
||||
|
||||
const key = str.toLowerCase();
|
||||
|
||||
const components = this.client.registry.components
|
||||
.filter((c) => c.type === type)
|
||||
.filter((c) => type === 'any' || c.type === type)
|
||||
.filter(exact ? (c) => c.tags.includes(key) : filterInexactTags(key))
|
||||
.array();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user