Skip to content

Commit

Permalink
fix ApiDocs NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
aotearoan committed Nov 8, 2020
1 parent 4fe8996 commit 3030fcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aotearoan/neon",
"description": "Neon is a lightweight design library of VueJS components with minimal dependencies. It supports light and dark modes and can be extended to support multiple themes",
"version": "3.1.3",
"version": "3.1.4",
"main": "dist/@aotearoan/neon.umd.js",
"types": "dist/@aotearoan/components.d.ts",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/api-docs/ApiDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export default class ApiDocs extends Vue {
}

private get hasProps() {
return this.apiModel.props.length > 0;
return this.apiModel.props?.length > 0;
}

private get hasEvents() {
return this.apiModel.events.length > 0;
return this.apiModel.events?.length > 0;
}

private get hasSlots() {
Expand Down

0 comments on commit 3030fcd

Please sign in to comment.