Add narrative schemas

This commit is contained in:
Franc Camps-Febrer
2018-12-03 16:40:27 +00:00
parent 85b31f59a0
commit e02b1c93e1
8 changed files with 36 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ class Dashboard extends React.Component {
}
getNarrativeLinks(event) {
const narrative = this.props.domain.narratives.find(nv => nv.key === event.narrative);
const narrative = this.props.domain.narratives.find(nv => nv.id === event.narrative);
if (narrative) return narrative.byId[event.id];
return null;
}