Skip to content

Commit 4fff01a

Browse files
author
PR Batch Tester
committed
fix(web): keep cloud link cleanup compatible with React Compiler
1 parent 928de7f commit 4fff01a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,9 @@ function ConfiguredCloudLinkRow({ canManageRelay }: { readonly canManageRelay: b
499499
reconcileCloudState: reconcileLink,
500500
} = useCloudLinkController();
501501
const [isBusy, setIsBusy] = useAtom(primaryCloudLinkMutationAtom(primaryEnvironmentId));
502-
const reconcileCloudState = async (desired: CloudLinkDesiredState) => {
502+
const reconcileCloudState = (desired: CloudLinkDesiredState) => {
503503
setIsBusy(true);
504-
try {
505-
return await reconcileLink(desired);
506-
} finally {
507-
setIsBusy(false);
508-
}
504+
return reconcileLink(desired).finally(() => setIsBusy(false));
509505
};
510506

511507
const disabledReason = !isSignedIn

0 commit comments

Comments
 (0)