Open
Description
This is about the refactoring from the last commit on PR #461, now git commit abc66c7 on branch neil/refac
.
This ticket is about fixing this branch.
One known bug is:
Env
- neil@beonex account
- EWS
Reproduction
- Start Mustang, go to Email
- Click on email "Owl ActiveSync 128 from 115" or any of the other emails with an open (not responded) invitation
- Click on [Accept]
Actual result
After step 2 (view only):
- You see an invitation
- You see error "Must have event to find calendar"
- You see the error message twice
- No error on console (!)
After step 3:
selectedCalendar
is undefined
error.ts:6 TypeError: Cannot read properties of undefined (reading 'respondToInvitation')
at respond (Invitation.svelte:59:28)
at onAccept (Invitation.svelte:62:11)
at HTMLButtonElement.myOnClick (Button.svelte:79:13)
- This is on line:
await selectedCalendar.respondToInvitation(message, response);
. That meansselectedCalendar
is undefined.
Expected result
- All errors are on the local error console, and are also logged to server
- No error during display
- No error during [Accept]
- Response is processed.
Originally posted by @benbucksch in #461 (comment)