Skip to content

Commit

Permalink
Use (empty) instead of - for undefined/null string values
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Mar 10, 2016
1 parent 3c70890 commit 802863a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/utils/lodash-mixins/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function (_) {
* @return {string}
*/
asPrettyString: function (val) {
if (val === null || val === undefined) return ' - ';
if (val === null || val === undefined) return '(empty)';
switch (typeof val) {
case 'string': return val;
case 'object': return JSON.stringify(val, null, ' ');
Expand Down

0 comments on commit 802863a

Please sign in to comment.