Skip to content

Commit

Permalink
ofmcc-6318 - bug fix for Service Delivery page - Provider with Multip…
Browse files Browse the repository at this point in the history
…le type cannot update Licence info
  • Loading branch information
vietle-cgi committed Oct 10, 2024
1 parent 2016277 commit c586ad1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
1 change: 0 additions & 1 deletion frontend/src/views/applications/ApplicationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export default {
save: false,
submit: false,
showCancelDialog: false,
facility: {},
contacts: [],
}
},
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/views/applications/FacilityDetailsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ export default {
type: Boolean,
default: false,
},
facility: {
type: Object,
default: () => {
return {}
},
},
contacts: {
type: Array,
default: () => [],
Expand Down
13 changes: 6 additions & 7 deletions frontend/src/views/applications/ServiceDeliveryView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ export default {
type: Boolean,
default: false,
},
facility: {
type: Object,
default: () => {
return {}
},
},
},
emits: ['process'],
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit c586ad1

Please sign in to comment.