Skip to content

Commit

Permalink
fix: assign empty string when predict item's fieldName is undefined (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kunzms authored May 12, 2020
1 parent 53efa66 commit d4d919f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react/components/pages/predict/predictPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -893,14 +893,14 @@ export default class PredictPage extends React.Component<IPredictPageProps, IPre
if (Number.isInteger(targetPage) && targetPage !== this.state.currPage) {
this.setState({
currPage: targetPage,
highlightedField: predictedItem.fieldName,
highlightedField: predictedItem.fieldName ?? "",
});
}
}

private onPredictionMouseEnter = (predictedItem: any) => {
this.setState({
highlightedField: predictedItem.fieldName,
highlightedField: predictedItem.fieldName ?? "",
});
}

Expand Down

0 comments on commit d4d919f

Please sign in to comment.