diff --git a/src/components/TheTopCornerMenu.vue b/src/components/TheTopCornerMenu.vue index 0f97214a..79cd1dd7 100644 --- a/src/components/TheTopCornerMenu.vue +++ b/src/components/TheTopCornerMenu.vue @@ -59,7 +59,7 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) { showMenu = false get services() { - const services = this.$store.state.server.system_info.available_services?.filter((name: string) => name !== 'klipper_mcu') ?? [] + const services = this.$store.state.server.system_info?.available_services?.filter((name: string) => name !== 'klipper_mcu') ?? [] services.sort() return services } diff --git a/src/store/server/types.ts b/src/store/server/types.ts index b6a2bb80..a56aa5ca 100644 --- a/src/store/server/types.ts +++ b/src/store/server/types.ts @@ -16,7 +16,7 @@ export interface ServerState { [key: string]: any }, system_info: { - available_services: { [key: number]: string }[] + available_services: string[] cpu_info: ServerStateCpuInfo distribution: ServerStateDistribution sd_info: ServerStateSdInfo