From 8871ac8d75ab7015c801ad65f98fffbd90cefe6b Mon Sep 17 00:00:00 2001 From: Christian Lenke Date: Mon, 22 May 2017 15:28:46 +0200 Subject: [PATCH 1/2] Fix order of type check and val reassignment in getShortTypeString --- src/tabs/getItemString.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabs/getItemString.js b/src/tabs/getItemString.js index 04ebbbd..c1fe8bb 100644 --- a/src/tabs/getItemString.js +++ b/src/tabs/getItemString.js @@ -5,11 +5,11 @@ import getType from '../utils/getType'; import type { StylingFunction } from 'react-base16-styling'; function getShortTypeString(val: any, diff?: boolean): string { - const type = getType(val); - if (diff && Array.isArray(val)) { val = val[val.length === 2 ? 1 : 0]; } + + const type = getType(val); switch (type) { case 'Immutable List': From 05fe33d800fb09d7c28de320c15a5790abf11584 Mon Sep 17 00:00:00 2001 From: Christian Lenke Date: Mon, 22 May 2017 15:37:29 +0200 Subject: [PATCH 2/2] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3295a86..a48fa4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-devtools-inspector", - "version": "0.11.3", + "version": "0.11.4", "description": "Redux DevTools Diff Monitor", "scripts": { "build:lib": "NODE_ENV=production babel src --out-dir lib",