From 544100d7021f375d2330b214f6192f364f8ad159 Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Tue, 18 Feb 2020 07:10:33 -0800 Subject: [PATCH] fix dynamic data element check (#1538) --- packages/subapp-web/src/subapp-web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/subapp-web/src/subapp-web.js b/packages/subapp-web/src/subapp-web.js index 739387e40..59bd390c7 100644 --- a/packages/subapp-web/src/subapp-web.js +++ b/packages/subapp-web/src/subapp-web.js @@ -342,7 +342,7 @@ dyn(id) { const msg = "ERROR: fail retrieve dynamic data from element"; const element = document.getElementById(id); - if (!id) { + if (!element) { console.error(msg, id, "- get"); } else { try {