Skip to content

Commit b62f8f4

Browse files
authored
fix(table): return empty string if cell value is null or undefined. Fixes #1502 (#2139)
* fix(table): return empty string if cell value is null or undefined. Fixes #1502
1 parent 2eb706f commit b62f8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/table/table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ export default {
10861086
value = parent[formatter](value, key, item)
10871087
}
10881088
}
1089-
return value
1089+
return (value === null || typeof value === 'undefined') ? '' : value
10901090
}
10911091
}
10921092
}

0 commit comments

Comments
 (0)