mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:31:48 +00:00
Fix error message: "Cannot read properties of undefined (reading 'chatDynamicVariableModel')" (#199909)
Fix #199818
This commit is contained in:
parent
4b9608ccce
commit
967abeaacb
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
|||
|
||||
this._register(this.inputPart.onDidLoadInputState(state => {
|
||||
this.contribs.forEach(c => {
|
||||
if (c.setInputState && state[c.id]) {
|
||||
if (c.setInputState && typeof state === 'object' && state?.[c.id]) {
|
||||
c.setInputState(state[c.id]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue