From a76d9b4c7984f1a6fae98ae9e9b4508e943172e6 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Wed, 9 Jul 2025 09:40:30 +0200 Subject: [PATCH] Fix build --- justfile | 3 +++ ui/src/components/CreateEventModal.tsx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 82fd7e0..2d235b6 100644 --- a/justfile +++ b/justfile @@ -10,6 +10,9 @@ test-frontend-watch: typecheck: cd ui && tsc -b +build-frontend: + cd ui && pnpm run build + _api-dev: cd api && npm run dev diff --git a/ui/src/components/CreateEventModal.tsx b/ui/src/components/CreateEventModal.tsx index c2d8415..f2e241c 100644 --- a/ui/src/components/CreateEventModal.tsx +++ b/ui/src/components/CreateEventModal.tsx @@ -199,7 +199,7 @@ export const CreateEventModal = () => { const option = timeOptions.find( (option) => option.id === value ); - if (option) { + if (option && value) { setCreatedEvent({ ...createdEvent, start_time: value.toString(), @@ -230,7 +230,7 @@ export const CreateEventModal = () => { const option = timeOptions.find( (option) => option.id === value ); - if (option) { + if (option && value) { setCreatedEvent({ ...createdEvent, end_time: value.toString(),