Skip to content

Commit

Permalink
Use safer type identification
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasb committed Dec 18, 2016
1 parent 800e017 commit 69b321e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/about/about.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class AboutComponent implements OnInit {
getDataType(value) {
if (typeof value === "object") {
return "dict";
} else if (typeof value === "array") {
} else if (value.constructor === Array) {
return "array";
} else if (typeof value === "string") {
return "string";
Expand Down

0 comments on commit 69b321e

Please sign in to comment.