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";
3
3
import SelectInput from " @/components/common/SelectInput.vue" ;
4
4
import {useMatchStateStore } from " @/store/matchState" ;
5
5
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" ;
7
7
import type {ControlApi } from " @/providers/controlApi" ;
8
8
9
9
const store = useMatchStateStore ()
@@ -13,7 +13,7 @@ const model = computed(() => {
13
13
return store .matchState .matchType
14
14
})
15
15
16
- const options = Object .values (MatchType ).map ((v ) => v as MatchTypeJson )
16
+ const options = Object .values (MatchTypeSchema . values ).map ((v ) => v . name as MatchTypeJson )
17
17
const optionsLabel = (v : MatchTypeJson ) => matchTypeName (v ) || " -"
18
18
19
19
const onChange = (newValue : MatchTypeJson ) => {
You can’t perform that action at this time.
0 commit comments