Fix build
This commit is contained in:
parent
b33e3ed123
commit
a76d9b4c79
2 changed files with 5 additions and 2 deletions
3
justfile
3
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue