Apply correct narrative styles in map

This commit is contained in:
Franc Camps-Febrer
2018-12-14 17:28:28 +01:00
committed by Lachlan Kermode
parent 40ac0eb120
commit 7b25efda95
2 changed files with 3 additions and 3 deletions

View File

@@ -395,7 +395,7 @@ Stop and start the development process in terminal after you have added your tok
})
.style('stroke-opacity', d => {
if (app.narrative === null) return 0;
if (!d[0] || app.narrative.id !== d[0].narrative) return 0.2;
if (!d[0] || !d[0].narratives.find(n => n === app.narrative.id)) return 0.2;
return 1;
})
.style('fill', 'none');
@@ -408,7 +408,7 @@ Stop and start the development process in terminal after you have added your tok
})
.style('stroke-opacity', d => {
if (app.narrative === null) return 0;
if (!d[0] || app.narrative.id !== d[0].narrative) return 0.2;
if (!d[0] || !d[0].narratives.find(n => n === app.narrative.id)) return 0.2;
return 1;
})
}