Skip to content

Commit

Permalink
fix: trim levels not showing (closes #1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Jun 9, 2024
1 parent ced8c37 commit f0c3bc3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export function RegisterVehicleModal({ vehicle, onClose, onCreate, onUpdate }: P
if (CUSTOM_TEXTFIELD_VALUES && node) {
setValues({
...values,
modelValue: node.value,
modelName: node.textValue,
model: node.textValue,
});
Expand All @@ -221,6 +222,7 @@ export function RegisterVehicleModal({ vehicle, onClose, onCreate, onUpdate }: P
if (node) {
setValues({
...values,
modelValue: node.value,
modelName: node.value?.value.value ?? node.textValue,
model: node.key as string,
});
Expand Down

0 comments on commit f0c3bc3

Please sign in to comment.