Use tag arrays in events, no longer strings

This commit is contained in:
Franc Camps-Febrer
2019-01-16 09:57:51 -05:00
parent f4a1c8e958
commit 470daf27e7
7 changed files with 58 additions and 21 deletions

View File

@@ -33,8 +33,7 @@ export const getTimeRange = state => state.app.filters.timerange
*/
function isTaggedIn(event, tagFilters) {
if (event.tags) {
const tagsInEvent = event.tags.split(",")
const isTagged = tagsInEvent.some((tag) => {
const isTagged = event.tags.some((tag) => {
return tagFilters.find(tF => (tF.key === tag && tF.active))
})
return isTagged