From 31777f12898f7f2c2916a3a3254a5b1d312ec6a1 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 1 Mar 2018 16:31:58 +0100 Subject: [PATCH] fix TreeView UI --- remix-debugger/src/ui/SolidityTypeFormatter.js | 2 +- remix-debugger/src/ui/TreeView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/remix-debugger/src/ui/SolidityTypeFormatter.js b/remix-debugger/src/ui/SolidityTypeFormatter.js index 445f299cd8..48c422418c 100644 --- a/remix-debugger/src/ui/SolidityTypeFormatter.js +++ b/remix-debugger/src/ui/SolidityTypeFormatter.js @@ -48,7 +48,7 @@ function extractData (item, parent, key) { ret.isMapping = true ret.self = item.type } else { - ret.children = [] + ret.children = null ret.self = item.value ret.type = item.type } diff --git a/remix-debugger/src/ui/TreeView.js b/remix-debugger/src/ui/TreeView.js index 5485a7bb81..a6e210ffa9 100644 --- a/remix-debugger/src/ui/TreeView.js +++ b/remix-debugger/src/ui/TreeView.js @@ -175,7 +175,7 @@ class TreeView { ret.isLeaf = false } else { ret.self = item - ret.children = [] + ret.children = null ret.isNode = false ret.isLeaf = true }