From 2c928ca0d1c0409846af4caf751584a30dcb129d Mon Sep 17 00:00:00 2001 From: Navy Date: Tue, 4 Aug 2020 12:35:00 +0300 Subject: [PATCH] fix tag resolving --- structure/client/Resolver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structure/client/Resolver.js b/structure/client/Resolver.js index 2d7e805..c9b8afb 100644 --- a/structure/client/Resolver.js +++ b/structure/client/Resolver.js @@ -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();