Upload dialog hides a failed calendar request #50
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#50
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
If the request for your uploadable calendars fails, the error is never caught: the console shows an unhandled promise rejection and the dialog shows an empty dropdown with no explanation.
How to reproduce
get_admin_categoriesand choose "Block request URL".Expected
The dialog says the calendars could not be loaded and offers a retry.
Where to look
web/src/app/components/ModalUploadOne.tsx:fetchAdminCategorieshastry/finallybut nocatch. Add acatch, keep an error state, and show it with a Retry button.Modal, so it has no backdrop or close button; wrap it inModaltoo.Done when