From 77160b7aea713289d0c081b1e13461f0b8a0a427 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:53:28 +0000 Subject: [PATCH] fix(expo): convert null packId to undefined in TripForm submission Agent-Logs-Url: https://github.com/PackRat-AI/PackRat/sessions/c06bd591-dda9-4bcd-a776-5e77ee05fddf Co-authored-by: mikib0 <54102880+mikib0@users.noreply.github.com> --- apps/expo/features/trips/components/TripForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/expo/features/trips/components/TripForm.tsx b/apps/expo/features/trips/components/TripForm.tsx index b35da777df..152efb9df2 100644 --- a/apps/expo/features/trips/components/TripForm.tsx +++ b/apps/expo/features/trips/components/TripForm.tsx @@ -112,7 +112,11 @@ export const TripForm = ({ trip }: { trip?: Trip }) => { } as TripFormValues, validators: { onChange: tripFormSchema }, onSubmit: async ({ value }) => { - const submitData = { ...value, location: location ?? value.location }; + const submitData = { + ...value, + location: location ?? value.location, + packId: value.packId ?? undefined, + }; try { if (isEditingExistingTrip) { await updateTrip({ ...trip, ...submitData });