Skip to content

Commit

Permalink
Merge pull request #3797 from betagouv/diagnostic-undefined-bug
Browse files Browse the repository at this point in the history
Fix du bug utilisant le mauvais diagnostic dans la preview
  • Loading branch information
alemangui authored Apr 8, 2024
2 parents a611b0c + b9a75c8 commit 33588a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/TeledeclarationPreview/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default {
return this.canteenForTD ? this.$store.getters.getCanteenUrlComponent(this.canteenForTD) : null
},
centralKitchenDiagostic() {
return this.canteenForTD.centralKitchenDiagnostics?.find((x) => x.year === this.diagnostic.year)
return this.canteenForTD.centralKitchenDiagnostics?.find((x) => x.year === this.diagnosticForTD.year)
},
showApproItems() {
if (this.canteenForTD.productionType === "site_cooked_elsewhere" && this.centralKitchenDiagostic) {
Expand Down

0 comments on commit 33588a6

Please sign in to comment.