From f31f17d559b6488d38b4d22663f49d7c347c9592 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Mon, 27 Apr 2020 12:07:32 +0200 Subject: [PATCH] Fix strict nulls (#23931) --- public/app/features/admin/AdminOrgsTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/admin/AdminOrgsTable.tsx b/public/app/features/admin/AdminOrgsTable.tsx index 8439924bb04..f2ec8c59f7d 100644 --- a/public/app/features/admin/AdminOrgsTable.tsx +++ b/public/app/features/admin/AdminOrgsTable.tsx @@ -45,10 +45,10 @@ export const AdminOrgsTable: FC = ({ orgs, onDelete }) => { } confirmText="Delete" - onDismiss={() => setDeleteOrg(null)} + onDismiss={() => setDeleteOrg(undefined)} onConfirm={() => { onDelete(deleteOrg.id); - setDeleteOrg(null); + setDeleteOrg(undefined); }} /> )}