|
@@ -140,7 +140,7 @@ export const getFormatDate = (type, length, date = new Date()) => {
|
|
|
*/
|
|
*/
|
|
|
export const replaceNullWithEmpty = obj => {
|
|
export const replaceNullWithEmpty = obj => {
|
|
|
function replaceValue (value) {
|
|
function replaceValue (value) {
|
|
|
- if (value === null) {
|
|
|
|
|
|
|
+ if (value === null || typeof value === 'undefined') {
|
|
|
return ''
|
|
return ''
|
|
|
} else if (typeof value === 'object') {
|
|
} else if (typeof value === 'object') {
|
|
|
if (Array.isArray(value)) {
|
|
if (Array.isArray(value)) {
|