Skip to content

Commit fce5527

Browse files
committed
Fix list of match types in UI
1 parent 1399dd4 commit fce5527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/start/MatchTypeInput.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {computed, inject} from "vue";
33
import SelectInput from "@/components/common/SelectInput.vue";
44
import {useMatchStateStore} from "@/store/matchState";
55
import {matchTypeName} from "@/helpers/texts";
6-
import {MatchType, type MatchTypeJson} from "@/proto/state/ssl_gc_referee_message_pb";
6+
import {type MatchTypeJson, MatchTypeSchema} from "@/proto/state/ssl_gc_referee_message_pb";
77
import type {ControlApi} from "@/providers/controlApi";
88
99
const store = useMatchStateStore()
@@ -13,7 +13,7 @@ const model = computed(() => {
1313
return store.matchState.matchType
1414
})
1515
16-
const options = Object.values(MatchType).map((v) => v as MatchTypeJson)
16+
const options = Object.values(MatchTypeSchema.values).map((v) => v.name as MatchTypeJson)
1717
const optionsLabel = (v: MatchTypeJson) => matchTypeName(v) || "-"
1818
1919
const onChange = (newValue: MatchTypeJson) => {

0 commit comments

Comments
 (0)