Skip to content

Commit 68107bc

Browse files
committed
fix tech selection
1 parent 9e3030f commit 68107bc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/round/TechCardDraft.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ export default defineComponent({
7979
8080
const roundData = state.rounds.find(item => item.round == props.navigationState.round)!
8181
const lastTechDraftStep = roundData.techDraftSteps?.find(item => item.step == props.navigationState.draftingStep - 1)
82-
const botTechs = ref(lastTechDraftStep?.botTechs ?? [])
83-
const playerTechs = ref(lastTechDraftStep?.playerTechs ?? [])
82+
const botTechs = ref(cloneDeep(lastTechDraftStep?.botTechs ?? []))
83+
const playerTechs = ref(cloneDeep(lastTechDraftStep?.playerTechs ?? []))
8484
const playerSpecialActions = ref(lastTechDraftStep?.playerSpecialActions ?? 0)
8585
const techDraftStep = ref({
8686
round: props.navigationState.round,
8787
step: props.navigationState.draftingStep,
8888
nextStartPlayer: lastTechDraftStep?.nextStartPlayer,
8989
nextArchitectPlayer: lastTechDraftStep?.nextArchitectPlayer,
90-
botTechs: cloneDeep(lastTechDraftStep?.botTechs ?? []),
91-
playerTechs: cloneDeep(lastTechDraftStep?.playerTechs ?? []),
90+
botTechs: botTechs.value,
91+
playerTechs: playerTechs.value,
9292
playerSpecialActions: lastTechDraftStep?.playerSpecialActions ?? 0
9393
} as TechDraftStep)
9494

0 commit comments

Comments
 (0)