Upload form forgets the event type you picked #52
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#52
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
In the Upload flow, the event type picked on the "Upload to ..." step is lost: the next form opens with no type selected, so you have to pick it again.
How to reproduce
Expected
The form opens with the type you already picked.
Where to look
web/src/app/components/ModalEventLink.tsx:openUpload(selectedCategory, selectedEventType)stores the type inmodalData.eventType.web/src/app/components/ModalRender.tsx: renders<ModalEventForm>withouteventType={modalData.eventType}.web/src/app/components/ModalEventForm.tsx: already accepts an optionaleventTypeprop and uses it as the initialselectedEventType.reset(), which clears a type picked before it. Keep the type when switching to manual.Done when