mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Issue with the difference between clicking on a card and clicking on the caret (ie is there an onClick functionality for the card?)
This commit is contained in:
@@ -74,9 +74,10 @@ export function insetSourceFrom (allSources) {
|
||||
if (!event.sources) {
|
||||
sources = []
|
||||
} else {
|
||||
sources = event.sources.map(id => (
|
||||
allSources.hasOwnProperty(id) ? allSources[id] : null
|
||||
))
|
||||
sources = event.sources.map(src => {
|
||||
const id = typeof src === 'object' ? src.id : src
|
||||
return allSources.hasOwnProperty(id) ? allSources[id] : null
|
||||
})
|
||||
}
|
||||
return {
|
||||
...event,
|
||||
|
||||
Reference in New Issue
Block a user