Skip to content

Commit a101e2e

Browse files
perf(web): source control host settings compile with the React Compiler
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 1d4b897 commit a101e2e

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎apps/web/reactCompiledFiles.ts‎

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

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ export function SourceControlHostSettings({
3232

3333
const save = async (fields: Record<string, unknown>) => {
3434
setSaving(true);
35-
try {
36-
const result = await updateSettings({
37-
environmentId,
38-
input: { patch: { sourceControlHosts: { [definition.kind]: fields } } },
39-
});
40-
if (result._tag === "Success") onSaved();
41-
} finally {
42-
setSaving(false);
43-
}
35+
const result = await updateSettings({
36+
environmentId,
37+
input: { patch: { sourceControlHosts: { [definition.kind]: fields } } },
38+
});
39+
setSaving(false);
40+
if (result._tag === "Success") onSaved();
4441
};
4542

4643
return (

0 commit comments

Comments
 (0)