[botframework-webchat-control] liveChatContext is undefined on revisit
iMicknl opened this issue · 1 comments
iMicknl commented
In some scenario's, liveChatContext
in Local Storage is undefined. I am not sure why this happens, it could be that liveChatContext
is overwritten with undefined
when an Internal Server Error is returned by Omnichannel (which happens a lot..).
This will break the chat widget;
Possible solution:
Make sure we only write to liveChatContext
when it is not undefined, or remove the key from liveChatContext
.
skipper09 commented
yeah i've gotten this too. i added a check for 'undefined'