@adactive/adsum-utils
Advanced tools
Comparing version 0.0.2-y.44.41 to 0.0.2-y.44.42
{ | ||
"name": "@adactive/adsum-utils", | ||
"version": "0.0.2-y.44.41", | ||
"version": "0.0.2-y.44.42", | ||
"description": "Adsum Component utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -73,2 +73,4 @@ // @flow | ||
}); | ||
return pois; | ||
} | ||
@@ -127,2 +129,12 @@ | ||
getCategoriesByTag(tagName) { | ||
let result = []; | ||
const tags = this.getTagBy({name: tagName}); | ||
for (let tag of tags) { | ||
result.push(... this.getCategories(tag.categories)); | ||
} | ||
return result; | ||
} | ||
getPoisByCategoryId(id) { | ||
@@ -129,0 +141,0 @@ const category = this.getCategory(id); |
10034
214