From d4d919f678b1f162f48c87ee5223281e57945a0a Mon Sep 17 00:00:00 2001 From: kunzheng <58841788+kunzms@users.noreply.github.com> Date: Tue, 12 May 2020 13:55:30 -0700 Subject: [PATCH] fix: assign empty string when predict item's fieldName is undefined (#254) --- src/react/components/pages/predict/predictPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/react/components/pages/predict/predictPage.tsx b/src/react/components/pages/predict/predictPage.tsx index 6d03127cc..b4a8a71fd 100644 --- a/src/react/components/pages/predict/predictPage.tsx +++ b/src/react/components/pages/predict/predictPage.tsx @@ -893,14 +893,14 @@ export default class PredictPage extends React.Component { this.setState({ - highlightedField: predictedItem.fieldName, + highlightedField: predictedItem.fieldName ?? "", }); }