From 3030fcd7db1ef988a9a87c647a1eb643ab274b69 Mon Sep 17 00:00:00 2001 From: aotearoan Date: Sun, 8 Nov 2020 12:40:53 +0100 Subject: [PATCH] fix ApiDocs NPE --- package.json | 2 +- src/app/components/api-docs/ApiDocs.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cefb1911..812bbe1b 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/src/app/components/api-docs/ApiDocs.ts b/src/app/components/api-docs/ApiDocs.ts index 89da09a5..c4f6c707 100644 --- a/src/app/components/api-docs/ApiDocs.ts +++ b/src/app/components/api-docs/ApiDocs.ts @@ -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() {