You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to load Chat Copilot (pre-existing deployment with new/recent updates), It says "Loading Chats" and then I get a blank screen. The following exception is thrown:
react-dom.production.min.js:189 TypeError: Cannot read properties of undefined (reading 'indexOf')
at lq (PlanUtils.ts:6:41)
at _q (PlanViewer.tsx:83:30)
at Ca (react-dom.production.min.js:167:137)
at Cc (react-dom.production.min.js:290:337)
at ku (react-dom.production.min.js:280:389)
at yu (react-dom.production.min.js:280:320)
at mu (react-dom.production.min.js:280:180)
at au (react-dom.production.min.js:271:88)
at iu (react-dom.production.min.js:268:429)
at x (scheduler.production.min.js:13:203)
This appears to be regression / breaking change from #409. I have at least one plan in my chat history that doesn't have the userIntent or originalUserInput fields. I have a 100% repro of this issue and can provide more details offline.
The text was updated successfully, but these errors were encountered:
### Motivation and Context
Fixes#438
### Description
Old plans do not have the `userIntent` or `originalUserInput` fields, so
use the plan description as a fallback to populate the goal.
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Describe the bug
When I try to load Chat Copilot (pre-existing deployment with new/recent updates), It says "Loading Chats" and then I get a blank screen. The following exception is thrown:
This appears to be regression / breaking change from #409. I have at least one plan in my chat history that doesn't have the
userIntent
ororiginalUserInput
fields. I have a 100% repro of this issue and can provide more details offline.The text was updated successfully, but these errors were encountered: