From f0c3bc36d5ecf9d42cce4be0864b13adfcc284f2 Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:34:32 +0200 Subject: [PATCH] fix: trim levels not showing (closes #1923) --- .../citizen/vehicles/modals/register-vehicle-modal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/components/citizen/vehicles/modals/register-vehicle-modal.tsx b/apps/client/src/components/citizen/vehicles/modals/register-vehicle-modal.tsx index 20ee2212d..d550a7a2a 100644 --- a/apps/client/src/components/citizen/vehicles/modals/register-vehicle-modal.tsx +++ b/apps/client/src/components/citizen/vehicles/modals/register-vehicle-modal.tsx @@ -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, }); @@ -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, });