Allow categories to be selected by title and not id; allow for primary key field

This commit is contained in:
efarooqui
2021-04-30 17:47:16 -07:00
parent d6c5b55152
commit 123ed80d74
7 changed files with 17 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ class TimelineCategories extends React.Component {
) {
return null;
}
console.info(this.props.getCategoryY(cat));
return (
<>
<g
@@ -62,7 +62,7 @@ class TimelineCategories extends React.Component {
const { dims, categories, fallbackLabel } = this.props;
const categoriesExist = categories && categories.length > 0;
const renderedCategories = categoriesExist
? this.props.categories.map((cat, idx) => this.renderCategory(cat, idx))
? categories.map((cat, idx) => this.renderCategory(cat, idx))
: this.renderCategory(fallbackLabel, 0);
return (