From e0d1f7f7a638def2c71ea0dddd6ff4d45b933702 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 12 Aug 2015 15:36:42 +0300 Subject: [PATCH] Don't collapse nodes on hot reload --- src/react/JSONTree/grab-node.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/react/JSONTree/grab-node.js b/src/react/JSONTree/grab-node.js index de69cdb7..d3851433 100644 --- a/src/react/JSONTree/grab-node.js +++ b/src/react/JSONTree/grab-node.js @@ -9,19 +9,18 @@ import JSONNullNode from './JSONNullNode'; export default function(key, value, prevValue, theme) { const nodeType = objType(value); - const aKey = key + Date.now(); if (nodeType === 'Object') { - return ; + return ; } else if (nodeType === 'Array') { - return ; + return ; } else if (nodeType === 'String') { - return ; + return ; } else if (nodeType === 'Number') { - return ; + return ; } else if (nodeType === 'Boolean') { - return ; + return ; } else if (nodeType === 'Null') { - return ; + return ; } return false; }