File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments