Skip to content

Commit 9707868

Browse files
RaubzeugCopilot
andauthored
Update src/services/api/index.ts
Co-authored-by: Copilot <[email protected]>
1 parent 05d6046 commit 9707868

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export class YdbEmbeddedAPI {
5555
const token = csrfTokenGetter();
5656
if (token) {
5757
this.auth.setCSRFToken(token);
58+
// Use optional chaining as `meta` may not be initialized.
5859
this.meta?.setCSRFToken(token);
60+
// Use optional chaining as `codeAssist` may not be initialized.
5961
this.codeAssist?.setCSRFToken(token);
6062
this.operation.setCSRFToken(token);
6163
this.pdisk.setCSRFToken(token);

0 commit comments

Comments
 (0)