We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c4e409 + 95090b2 commit ced5733Copy full SHA for ced5733
website/src/components/menus/MenuDisplay.vue
@@ -82,12 +82,12 @@ export default class MenuDisplay extends Vue {
82
}
83
84
get currentSnackMenu (): string | null {
85
- const currentMenu = this.menu?.snack[this.snackType as keyof typeof this.menu.snack]
+ const currentMenu = this.menu?.snack?.[this.snackType as keyof typeof this.menu.snack]
86
return currentMenu ? this.convertNewlines(currentMenu) : null
87
88
89
get currentLunchMenu (): string | null {
90
- const currentMenu = this.menu?.lunch[this.lunchType as keyof typeof this.menu.lunch]
+ const currentMenu = this.menu?.lunch?.[this.lunchType as keyof typeof this.menu.lunch]
91
92
93
0 commit comments