From b8adb47787f2e2c1a2eedec1d45917ba6686e991 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 4 Mar 2022 10:02:52 +0800 Subject: [PATCH] * Modify the code logic. --- module/todo/js/common.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/todo/js/common.js b/module/todo/js/common.js index 3ff342953c..dd873085d9 100644 --- a/module/todo/js/common.js +++ b/module/todo/js/common.js @@ -51,11 +51,9 @@ function loadList(type, id) } - nameBoxLabel = typeof(nameBoxLabel) == "undefined" ? '' : nameBoxLabel; - if(nameBoxLabel) + if(typeof(nameBoxLabel) != "undefined") { - vision = typeof(vision) == "undefined" ? '' : vision; - if(type == 'custom' || (vision && vision == 'rnd')) + if(type == 'custom' || (typeof(vision) != "undefined" && vision == 'rnd')) { $('#nameBoxLabel').text(nameBoxLabel.custom); }