From 900950847bc971eb1a8e1357c65e10cb4d5591d9 Mon Sep 17 00:00:00 2001 From: Patrick Tang Date: Mon, 15 Jul 2024 01:25:54 -0700 Subject: [PATCH] Fix --- step-web/src/main/webapp/js/backbone/views/view_quick_lexicon.js | 1 - step-web/src/main/webapp/js/step.util.js | 1 - 2 files changed, 2 deletions(-) diff --git a/step-web/src/main/webapp/js/backbone/views/view_quick_lexicon.js b/step-web/src/main/webapp/js/backbone/views/view_quick_lexicon.js index cf6cd22757..c4653d2f12 100644 --- a/step-web/src/main/webapp/js/backbone/views/view_quick_lexicon.js +++ b/step-web/src/main/webapp/js/backbone/views/view_quick_lexicon.js @@ -127,7 +127,6 @@ var QuickLexicon = Backbone.View.extend({ else { step.util.getFrequency(self.version, data); for (var i = 0; i < data.vocabInfos.length; i++) { - if (data.vocabInfos[i] == null) continue; if (typeof data.vocabInfos[i].mediumDef === "string") { if ((typeof data.vocabInfos[i].shortDef === "string") && (data.vocabInfos[i].shortDef.length > 2)) { var pos = data.vocabInfos[i].mediumDef.indexOf(data.vocabInfos[i].shortDef); diff --git a/step-web/src/main/webapp/js/step.util.js b/step-web/src/main/webapp/js/step.util.js index 99ec010954..d83b2e7ffc 100644 --- a/step-web/src/main/webapp/js/step.util.js +++ b/step-web/src/main/webapp/js/step.util.js @@ -4375,7 +4375,6 @@ step.util = { var testamentOfFrequency = result[1]; if (versionIndex > -1) { for (var i = 0; i < data.vocabInfos.length; i++) { - if (data.vocabInfos[i] == null) continue; if (typeof data.vocabInfos[i].freqList !== "string") { if (typeof data.vocabInfos[i].popularityList === "string") data.vocabInfos[i].freqList = data.vocabInfos[i].popularityList;