All components use getCategoryColor

This commit is contained in:
Franc Camps-Febrer
2018-12-03 14:50:38 +00:00
parent 0a6ba78389
commit b7c73ab9bd
6 changed files with 10 additions and 19 deletions

View File

@@ -92,8 +92,8 @@ class Dashboard extends React.Component {
}
}
getCategoryColor(category) {
return this.props.ui.style.categories[category];
getCategoryColor(category='other') {
return this.props.ui.style.categories[category] || this.props.style.categories['other']
}
getNarrativeLinks(event) {