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:
efarooqui
2020-09-22 16:55:13 -07:00
parent 99fd2198e2
commit 2423a5a5ad
6 changed files with 32 additions and 16 deletions

View File

@@ -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,