File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/components/start Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import {computed, inject} from "vue";
33import SelectInput from " @/components/common/SelectInput.vue" ;
44import {useMatchStateStore } from " @/store/matchState" ;
55import {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" ;
77import type {ControlApi } from " @/providers/controlApi" ;
88
99const 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 )
1717const optionsLabel = (v : MatchTypeJson ) => matchTypeName (v ) || " -"
1818
1919const onChange = (newValue : MatchTypeJson ) => {
You can’t perform that action at this time.
0 commit comments