Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'leave') #31

Open
Mit-Bhayani opened this issue Oct 5, 2022 · 0 comments
Open

Cannot read properties of undefined (reading 'leave') #31

Mit-Bhayani opened this issue Oct 5, 2022 · 0 comments

Comments

@Mit-Bhayani
Copy link

I'm working with the web chat and currently using the flex V2 for UI.

Whenever I try to complete the task for specifically chat that time it gives me an error on the console as given below in the screenshot.

I checked on code as I used this method while transferring the task that somehow it's been called and generated the error but this is not the case.
Also, I added an event listener for afterCompleteTask but the error is generated prior to this.

twilio-flex.min.js:609 TypeError: Cannot read properties of undefined (reading 'leave') at twilio-flex.min.js:313:82629 at twilio-flex.min.js:313:75724 at Object.next (twilio-flex.min.js:313:75829) at twilio-flex.min.js:313:74741 at new Promise (<anonymous>) at s (twilio-flex.min.js:313:74486) at e.leaveAgentFromChatInternal (twilio-flex.min.js:313:82254) at e.<anonymous> (twilio-flex.min.js:313:78504) at twilio-flex.min.js:313:75724 at Object.next (twilio-flex.min.js:313:75829) at a (twilio-flex.min.js:313:74543) (anonymous) @ twilio-flex.min.js:609 (anonymous) @ twilio-flex.min.js:244

image

Can anybody help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant