From f2579df2084228208453c4b8473a476ea3f0f4c0 Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Wed, 19 Jul 2023 13:32:09 -0700 Subject: [PATCH] TypeError Protection --- ppr-ui/package-lock.json | 4 ++-- ppr-ui/package.json | 2 +- .../components/collateral/generalCollateral/GenColAmend.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index a77873d8e..0b881b48d 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "2.0.32", + "version": "2.0.33", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "2.0.32", + "version": "2.0.33", "dependencies": { "@bcrs-shared-components/corp-type-module": "^1.0.7", "@bcrs-shared-components/enums": "^1.0.19", diff --git a/ppr-ui/package.json b/ppr-ui/package.json index 54c65c68f..60924b361 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "2.0.32", + "version": "2.0.33", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/components/collateral/generalCollateral/GenColAmend.vue b/ppr-ui/src/components/collateral/generalCollateral/GenColAmend.vue index 9328ba526..546581e17 100644 --- a/ppr-ui/src/components/collateral/generalCollateral/GenColAmend.vue +++ b/ppr-ui/src/components/collateral/generalCollateral/GenColAmend.vue @@ -180,8 +180,8 @@ export default defineComponent({ ] const localState = reactive({ - delDesc: getGeneralCollateral.value[1]?.descriptionDelete || '', - addDesc: getGeneralCollateral.value[1]?.descriptionAdd || '', + delDesc: (getGeneralCollateral?.value && getGeneralCollateral.value[1]?.descriptionDelete) || '', + addDesc: (getGeneralCollateral?.value && getGeneralCollateral.value[1]?.descriptionAdd) || '', generalCollateral: computed((): GeneralCollateralIF[] => { return (getGeneralCollateral.value as GeneralCollateralIF[]) || [] }),