diff --git a/frontend/src/views/applications/ApplicationView.vue b/frontend/src/views/applications/ApplicationView.vue index ab01861a..99024935 100644 --- a/frontend/src/views/applications/ApplicationView.vue +++ b/frontend/src/views/applications/ApplicationView.vue @@ -63,7 +63,6 @@ export default { save: false, submit: false, showCancelDialog: false, - facility: {}, contacts: [], } }, diff --git a/frontend/src/views/applications/FacilityDetailsView.vue b/frontend/src/views/applications/FacilityDetailsView.vue index ecc468cc..0c7daae5 100644 --- a/frontend/src/views/applications/FacilityDetailsView.vue +++ b/frontend/src/views/applications/FacilityDetailsView.vue @@ -149,12 +149,6 @@ export default { type: Boolean, default: false, }, - facility: { - type: Object, - default: () => { - return {} - }, - }, contacts: { type: Array, default: () => [], diff --git a/frontend/src/views/applications/ServiceDeliveryView.vue b/frontend/src/views/applications/ServiceDeliveryView.vue index e1ce03a7..eb624afb 100644 --- a/frontend/src/views/applications/ServiceDeliveryView.vue +++ b/frontend/src/views/applications/ServiceDeliveryView.vue @@ -142,12 +142,6 @@ export default { type: Boolean, default: false, }, - facility: { - type: Object, - default: () => { - return {} - }, - }, }, emits: ['process'], @@ -181,7 +175,12 @@ export default { }, isLicenceDetailsEditable() { - return !this.readonly && this.facility?.programCode === OFM_PROGRAM_CODES.MULTIPLE && !this.facility?.facilityReviewComplete && !this.currentApplication?.applicationReviewComplete + return ( + !this.readonly && + this.currentApplication?.facility?.programCode === OFM_PROGRAM_CODES.MULTIPLE && + !this.currentApplication?.facility?.facilityReviewComplete && + !this.currentApplication?.applicationReviewComplete + ) }, isHealthAuthorityReportsUploaded() {