diff --git a/packages/grafana-ui/src/components/Switch/Switch.tsx b/packages/grafana-ui/src/components/Switch/Switch.tsx index e775fdfa48b..feee58386b8 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.tsx @@ -14,7 +14,8 @@ export interface Props { export interface State { id: any; } - export class Switch extends PureComponent { + +export class Switch extends PureComponent { state = { id: _.uniqueId(), };