Fix strict nulls (#23931)

This commit is contained in:
Tobias Skarhed 2020-04-27 12:07:32 +02:00 committed by GitHub
parent d0e23af228
commit f31f17d559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,10 +45,10 @@ export const AdminOrgsTable: FC<Props> = ({ orgs, onDelete }) => {
</div>
}
confirmText="Delete"
onDismiss={() => setDeleteOrg(null)}
onDismiss={() => setDeleteOrg(undefined)}
onConfirm={() => {
onDelete(deleteOrg.id);
setDeleteOrg(null);
setDeleteOrg(undefined);
}}
/>
)}