From 7166cbf57471dd9dd018754475b423e3b580c40b Mon Sep 17 00:00:00 2001 From: Magnus Borgmann Date: Wed, 13 Nov 2024 16:36:39 +0100 Subject: [PATCH] update version and fix variable (#90) * update version and fix variable * add null check --- components/Navigation/NavigationSidebar.vue | 2 +- package.json | 2 +- pages/newsletter/confirm.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Navigation/NavigationSidebar.vue b/components/Navigation/NavigationSidebar.vue index 1bf9b64..eba88b1 100644 --- a/components/Navigation/NavigationSidebar.vue +++ b/components/Navigation/NavigationSidebar.vue @@ -26,7 +26,7 @@ const handleClick = navigationElement => { const handleBack = () => { if (previousNavigationItems.value.length <= 1) { - shownNavigationItems.value = navigationElements.value; + shownNavigationItems.value = mainNavigationElements.value; previousNavigationItems.value.pop(); return; } diff --git a/package.json b/package.json index 414503f..8b41eda 100755 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@basecom-gmbh/pond", "type": "module", "main": "./nuxt.config.ts", - "version": "0.0.16", + "version": "0.0.17", "scripts": { "build": "nuxt build", "dev": "nuxt dev", diff --git a/pages/newsletter/confirm.vue b/pages/newsletter/confirm.vue index 082a69b..7d41c84 100644 --- a/pages/newsletter/confirm.vue +++ b/pages/newsletter/confirm.vue @@ -35,7 +35,7 @@ onMounted(async () => { } catch (error) { // If an error occurs and the user is not logged in, this is most likely because the email is already registered // TODO: Only keep the actual error handling once we no longer have to always try to confirm guests = once we can check their newsletter status beforehand - if (!signedIn.value && error.details.errors[0].code === 'VIOLATION::NOT_EQUAL_ERROR') { + if (!signedIn.value && error.details?.errors[0].code === 'VIOLATION::NOT_EQUAL_ERROR') { notificationText.value = t('cms.element.form.newsletter.alreadySubscriber'); notificationType.value = 'info'; } else {