mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(site): remove non-null assertion on optional chain in ExternalAuthPage (#24073)
This commit is contained in:
@@ -70,9 +70,12 @@ const ExternalAuthPage: FC = () => {
|
||||
entity="application"
|
||||
onCancel={() => setAppToUnlink(undefined)}
|
||||
onConfirm={async () => {
|
||||
if (!appToUnlink) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const unlinkResp = await unlinkAppMutation.mutateAsync(
|
||||
appToUnlink?.id!,
|
||||
appToUnlink.id,
|
||||
);
|
||||
// setAppToUnlink closes the modal
|
||||
setAppToUnlink(undefined);
|
||||
|
||||
Reference in New Issue
Block a user