Skip to content

Commit 865b88e

Browse files
perf(web): GitHub token settings compile with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 0d9e11e commit 865b88e

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

‎apps/web/reactCompiledFiles.ts‎

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

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

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,17 @@ export function GitHubTokenSettings({
3939

4040
const save = async (target: string, token: string) => {
4141
setSaving(true);
42-
try {
43-
const result = await updateSettings({
44-
environmentId,
45-
// The map travels whole: every other saved token as its redaction marker, which keeps it.
46-
input: {
47-
patch: { sourceControlHosts: { github: { tokens: { ...tokens, [target]: token } } } },
48-
},
49-
});
50-
if (result._tag === "Success") {
51-
setDraft("");
52-
onSaved();
53-
}
54-
} finally {
55-
setSaving(false);
42+
const result = await updateSettings({
43+
environmentId,
44+
// The map travels whole: every other saved token as its redaction marker, which keeps it.
45+
input: {
46+
patch: { sourceControlHosts: { github: { tokens: { ...tokens, [target]: token } } } },
47+
},
48+
});
49+
setSaving(false);
50+
if (result._tag === "Success") {
51+
setDraft("");
52+
onSaved();
5653
}
5754
};
5855

0 commit comments

Comments
 (0)