diff --git a/pages/[type]/[id]/settings/license.vue b/pages/[type]/[id]/settings/license.vue index ecca6bb37..9c5aab771 100644 --- a/pages/[type]/[id]/settings/license.vue +++ b/pages/[type]/[id]/settings/license.vue @@ -44,12 +44,12 @@ :close-on-select="true" :show-labels="false" :class="{ - 'known-error': license.short === '' && showKnownErrors, + 'known-error': license?.short === '' && showKnownErrors, }" :disabled="!hasPermission" /> @@ -253,6 +253,7 @@ export default defineNuxtComponent({ }, licenseId() { let id = '' + if (this.license === null) return id if ( (this.nonSpdxLicense && this.license.friendly === 'Custom') || this.license.short === 'All-Rights-Reserved' ||