From e873f94bd43db6dfa61ec9f0f33fe366d025cf6a Mon Sep 17 00:00:00 2001 From: Shavonn Brown Date: Thu, 16 Apr 2020 11:38:54 -0400 Subject: [PATCH] revent optional event arg change (#23622) --- .../grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx b/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx index a0c6fc958c2..8a6cbd7225c 100644 --- a/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx @@ -12,7 +12,7 @@ export interface Props { tooltip?: string; tooltipPlacement?: PopperJS.Placement; transparent?: boolean; - onChange: (event?: React.SyntheticEvent) => void; + onChange: (event: React.SyntheticEvent) => void; } export interface State {