Skip to content

Commit

Permalink
[ML] check for partition field names
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Dec 30, 2019
1 parent f4595c4 commit a5a5224
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,13 @@ export class TimeSeriesExplorer extends React.Component {
this.setState(
{
entities: entities.map(entity => {
if (partitionField.name === entity.fieldName) {
if (partitionField?.name === entity.fieldName) {
entity.fieldValues = partitionField.values;
}
if (overField.name === entity.fieldName) {
if (overField?.name === entity.fieldName) {
entity.fieldValues = overField.values;
}
if (byField.name === entity.fieldName) {
if (byField?.name === entity.fieldName) {
entity.fieldValues = byField.values;
}
return entity;
Expand Down

0 comments on commit a5a5224

Please sign in to comment.