Skip to content

Commit

Permalink
fix: fixes issue where providing an empty subtype would crash plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 21, 2022
1 parent 766bb45 commit b16bfd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const stringify = (
if (depth == 5) {
return "";
}
if (!property || property == null) return ``;
if (typeof property == "string") return property;
if (typeof property == "number") return `${property}`;
if (Array.isArray(property)) {
Expand Down

0 comments on commit b16bfd0

Please sign in to comment.