From e92f282b1b601072f59fb423af2508a902e62480 Mon Sep 17 00:00:00 2001 From: surunzi Date: Wed, 19 Oct 2016 15:23:20 +0800 Subject: [PATCH] Fix: Json viewer array --- src/lib/JsonViewer.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/JsonViewer.es6 b/src/lib/JsonViewer.es6 index c226405..4b0383d 100644 --- a/src/lib/JsonViewer.es6 +++ b/src/lib/JsonViewer.es6 @@ -88,7 +88,7 @@ function createEl(key, val, map, firstLevel = false) { type = 'array'; let lastVal = util.last(val); - if (util.isStr(val) && util.startWith(lastVal, 'erudaJson')) id = lastVal; + if (util.isStr(lastVal) && util.startWith(lastVal, 'erudaJson')) id = lastVal; } function wrapKey(key)