From 329084defa8c042efc9bf2668728c31227661461 Mon Sep 17 00:00:00 2001 From: Adhitya Mamallan Date: Wed, 15 Nov 2023 16:34:38 +0100 Subject: [PATCH] Stringify nulls --- client/helpers/get-json-string-object.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/helpers/get-json-string-object.js b/client/helpers/get-json-string-object.js index c868e39fe..7f6378f72 100644 --- a/client/helpers/get-json-string-object.js +++ b/client/helpers/get-json-string-object.js @@ -22,8 +22,7 @@ import getStringElipsis from './get-string-elipsis'; const getJsonStringObject = value => { - const jsonStringFull = - value !== null && value !== undefined ? JSON.stringify(value, null, 2) : ''; + const jsonStringFull = value !== undefined ? JSON.stringify(value, null, 2) : ''; const jsonStringDisplay = getStringElipsis(jsonStringFull); return {