Skip to content

Commit a293667

Browse files
authored
AXON-1972: fix error handling uri (#1699)
1 parent 9305e11 commit a293667

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Bug Fixes
1010

1111
- **RovoDev**: Fixed chat message not appearing when clicking "Fix with Rovo Dev" before the chat view is fully initialized - now waits for the webview to be ready before executing the chat command
12+
- Fixed "Cannot read properties of undefined (reading 'initiateApiTokenAuth')" error
1213

1314
### Features
1415

src/lib/webview/controller/config/configV3WebviewController.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ export class ConfigV3WebviewController implements WebviewController<SectionV3Cha
119119
}
120120
}
121121

122-
public update(section: SectionV3ChangeMessage) {
122+
public update(section?: SectionV3ChangeMessage) {
123+
if (section === undefined) {
124+
this.invalidate();
125+
return;
126+
}
123127
// Store the section data for potential invalidate calls
124128
this._initialSection = section;
125129

src/lib/webview/controller/config/configWebviewController.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ export class ConfigWebviewController implements WebviewController<SectionChangeM
118118
}
119119
}
120120

121-
public update(section: SectionChangeMessage) {
121+
public update(section?: SectionChangeMessage) {
122+
if (section === undefined) {
123+
this.invalidate();
124+
return;
125+
}
122126
// Store the section data for potential invalidate calls
123127
this._initialSection = section;
124128

0 commit comments

Comments
 (0)