mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Events now only have associations; when filters and narratives are needed fromevents, interpolate from evt.associations
This commit is contained in:
@@ -84,11 +84,11 @@ export function validateDomain (domain, features) {
|
||||
function validateArray (items, domainKey, schema) {
|
||||
items.forEach(item => {
|
||||
// NB: backwards compatibility with 'tags' for 'filters'
|
||||
if (domainKey === 'events') {
|
||||
if (!item.filters && !!item.tags) {
|
||||
item.filters = item.tags
|
||||
}
|
||||
}
|
||||
// if (domainKey === 'events') {
|
||||
// if (!item.filters && !!item.tags) {
|
||||
// item.filters = item.tags
|
||||
// }
|
||||
// }
|
||||
validateArrayItem(item, domainKey, schema)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user