mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-26 08:39:11 +01:00
fix falsy check of response
This commit is contained in:
parent
f0d5cdecb7
commit
fb8277f03e
@ -11,7 +11,7 @@ import { useEffect } from 'react';
|
||||
import { useTheme } from 'providers/Theme/index';
|
||||
|
||||
const formatResponse = (data, mode) => {
|
||||
if (!data) {
|
||||
if (data === undefined) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ export const safeParseJSON = (str) => {
|
||||
};
|
||||
|
||||
export const safeStringifyJSON = (obj, indent = false) => {
|
||||
if (!obj) {
|
||||
if (obj === undefined) {
|
||||
return obj;
|
||||
}
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user