Skip to content

Commit

Permalink
frontend:DefaultParamLoader: Fix to new parameter
Browse files Browse the repository at this point in the history
* Fix parameter table to show new parameter instead of current one
  • Loading branch information
JoaoMario109 authored and patrickelectric committed Feb 10, 2025
1 parent e204ae7 commit 396f8b0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions core/frontend/src/components/wizard/DefaultParamLoader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
class="large-text-cell"
v-on="on"
>
{{ item.current ? printParamWithUnit(item.current) : item.value }}
{{ item.current ? printParamWithUnit(item.value) : item.value.value }}
</div>
</template>
<span>
{{ item.current ? printParamWithUnit(item.current) : item.value }}
{{ item.current ? printParamWithUnit(item.value) : item.value.value }}
</span>
</v-tooltip>
</v-col>
Expand Down Expand Up @@ -245,10 +245,15 @@ export default Vue.extend({
return Object.entries(paramset).map(([name]) => {
const currentParameter = autopilot_data.parameter(name)
const newParameter = {
...currentParameter,
value: paramset[name],
}
return {
name,
current: currentParameter,
value: paramset[name],
value: newParameter,
}
})
},
Expand Down

0 comments on commit 396f8b0

Please sign in to comment.