Commit 50d3339
committed
resolves #4670 (FR-1698)
This PR fixes an issue in the `useStartSession` hook where the agent selection logic wasn't properly handling both array and non-array values. The fix uses `_.castArray()` to ensure the agent value is always treated as an array before comparing it to `['auto']`.
**Checklist:** (if applicable)
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
1 parent f355e96 commit 50d3339
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments