Fix build

This commit is contained in:
Arthur Belleville 2025-07-09 09:40:30 +02:00
parent b33e3ed123
commit a76d9b4c79
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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(),