mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Use tag arrays in events, no longer strings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user