Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 04b77db

Browse files
committed
Fix more instances of square brackets off SdkConfig
1 parent 6b522cb commit 04b77db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ScalarAuthClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export default class ScalarAuthClient {
4444

4545
// We try and store the token on a per-manager basis, but need a fallback
4646
// for the default manager.
47-
const configApiUrl = SdkConfig.get()['integrations_rest_url'];
48-
const configUiUrl = SdkConfig.get()['integrations_ui_url'];
47+
const configApiUrl = SdkConfig.get("integrations_rest_url");
48+
const configUiUrl = SdkConfig.get("integrations_ui_url");
4949
this.isDefaultManager = apiUrl === configApiUrl && configUiUrl === uiUrl;
5050
}
5151

src/components/structures/MatrixChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
14631463

14641464
if (!localStorage.getItem("mx_seen_feature_thread_experimental")) {
14651465
setTimeout(() => {
1466-
if (SettingsStore.getValue("feature_thread") && SdkConfig.get()['showLabsSettings']) {
1466+
if (SettingsStore.getValue("feature_thread") && SdkConfig.get("show_labs_settings")) {
14671467
Modal.createDialog(InfoDialog, {
14681468
title: _t("Threads are no longer experimental! 🎉"),
14691469
description: <>

src/sentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async function getContexts(): Promise<Contexts> {
174174
}
175175

176176
export async function sendSentryReport(userText: string, issueUrl: string, error: Error): Promise<void> {
177-
const sentryConfig = SdkConfig.get()["sentry"];
177+
const sentryConfig = SdkConfig.getObject("sentry");
178178
if (!sentryConfig) return;
179179

180180
const captureContext = {

0 commit comments

Comments
 (0)