Skip to content

Commit 484edc1

Browse files
perf(web): GitHub account settings compile with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 5f0fa8e commit 484edc1

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

‎apps/web/reactCompiledFiles.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ export const REACT_COMPILED_FILES = [
7272
"apps/web/src/components/pullRequest/PullRequestThreadLinks.tsx",
7373
"apps/web/src/components/pullRequest/LinkPullRequestDialog.tsx",
7474
"apps/web/src/components/settings/GitHubTokenSettings.tsx",
75+
"apps/web/src/components/settings/GitHubAccountSettings.tsx",
7576
] as const;

‎apps/web/src/components/settings/GitHubAccountSettings.tsx‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,16 @@ export function GitHubAccountSettings({
5555
change: { readonly enabled?: boolean; readonly account?: string | null },
5656
) => {
5757
setSaving(true);
58-
try {
59-
const result = await updateSettings({
60-
environmentId,
61-
input: {
62-
patch: {
63-
sourceControlHosts: { github: { hosts: nextGitHubHosts(hosts, host, change) } },
64-
},
58+
const result = await updateSettings({
59+
environmentId,
60+
input: {
61+
patch: {
62+
sourceControlHosts: { github: { hosts: nextGitHubHosts(hosts, host, change) } },
6563
},
66-
});
67-
if (result._tag === "Success") onSaved();
68-
} finally {
69-
setSaving(false);
70-
}
64+
},
65+
});
66+
setSaving(false);
67+
if (result._tag === "Success") onSaved();
7168
};
7269

7370
if (groups.length === 0) {

0 commit comments

Comments
 (0)