From e6262f02074ce64fb024314d66929eeec8d12b8b Mon Sep 17 00:00:00 2001 From: Julien Deniau Date: Sun, 30 Mar 2025 21:24:57 +0200 Subject: [PATCH] "Null" string should be displayed as a string, not as null --- index.html | 3 ++- src/createFormatters.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 28fcd50..1064c4e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ Immutable DevTools Demo - + diff --git a/src/createFormatters.js b/src/createFormatters.js index 293138d..0eb82fe 100644 --- a/src/createFormatters.js +++ b/src/createFormatters.js @@ -34,7 +34,7 @@ export default function createFormatter(Immutable) { const reference = (object, config) => { if (typeof object === 'undefined') return ['span', nullStyle, 'undefined']; - else if (object === 'null') + else if (object === null) return ['span', nullStyle, 'null']; return ['object', {object, config}];