Skip to content

Commit

Permalink
Stringify nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
adhityamamallan committed Nov 15, 2023
1 parent 317815a commit 329084d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/helpers/get-json-string-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) : '';

Check failure on line 25 in client/helpers/get-json-string-object.js

View workflow job for this annotation

GitHub Actions / build

Insert `⏎···`

Check failure on line 25 in client/helpers/get-json-string-object.js

View workflow job for this annotation

GitHub Actions / build

Insert `⏎···`
const jsonStringDisplay = getStringElipsis(jsonStringFull);

return {
Expand Down

0 comments on commit 329084d

Please sign in to comment.