From d04ab4da895423141d0496d774ffc5a00b3a2e83 Mon Sep 17 00:00:00 2001 From: Patrick Tang Date: Mon, 30 Sep 2024 02:57:05 -0700 Subject: [PATCH] handle nomorph --- step-web/src/main/webapp/js/step.util.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/step-web/src/main/webapp/js/step.util.js b/step-web/src/main/webapp/js/step.util.js index c01106839d..5aa8368b81 100644 --- a/step-web/src/main/webapp/js/step.util.js +++ b/step-web/src/main/webapp/js/step.util.js @@ -4058,14 +4058,14 @@ step.util = { var numOfMorphResponse = 0; var morphArray = morph.split(" "); resultJson.morphInfos = new Array(morphArray.length); - // for (var k = 0; k < morphArray.length; k++) { - // var currentMorph = morphArray[k]; - // if (currentMorph === "n/a") { - // numOfMorphResponse ++; - // resultJson.morphInfos[k] = {}; - // break; - // } - // } + for (var k = 0; k < morphArray.length; k++) { + var currentMorph = morphArray[k]; + if (currentMorph === "nomorph") { + numOfMorphResponse ++; + resultJson.morphInfos[k] = {}; + break; + } + } for (var k = 0; k < morphArray.length; k++) { var currentMorph = morphArray[k]; var morphLowerCase = currentMorph.toLowerCase();