Skip to content

Commit

Permalink
Logic Modified !!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra Sisodiya committed Oct 25, 2016
1 parent 818c49b commit d4acc04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/ReactJSONViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,8 @@ return /******/ (function(modules) { // webpackBootstrap
} else {
return "";
}
}).filter(function (v, i, A) {
return A.length > One;
});
if (test.length > One) {
if (test.length > One && test[0].length > One) {
return allValuesSameInArray(test);
} else {
return false;
Expand Down
4 changes: 1 addition & 3 deletions src/JSONViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ var JSONViewer = class JSONViewer extends Component {
} else {
return "";
}
}).filter(function (v, i, A) {
return A.length > One;
});
if (test.length > One) {
if (test.length > One && test[0].length > One) {
return allValuesSameInArray(test);
} else {
return false;
Expand Down

0 comments on commit d4acc04

Please sign in to comment.