Skip to content

Commit

Permalink
fix(pie-slice):added check to handle exception (#248)
Browse files Browse the repository at this point in the history
added check to handle exception

UIC-2115
  • Loading branch information
jitendra-kumawat authored and ankursinghal2005 committed Sep 25, 2019
1 parent 2bd3f87 commit 1f32409
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions superset/assets/src/visualizations/nvd3/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,11 @@ export function formatLabel(input, verboseMap = {}) {
}

export function simpleNumber(json) {
var str = JSONbig.stringify(json);
return JSON.parse(str);
if (json) {
var str = JSONbig.stringify(json);
return JSON.parse(str);
}
return json
}


Expand Down

0 comments on commit 1f32409

Please sign in to comment.