Skip to content

Commit 58eaa0d

Browse files
committed
linting error
1 parent 513eeae commit 58eaa0d

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/buttonPanel.test.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import {
55
LoadingState,
66
PanelProps,
77
} from '@grafana/data';
8-
import {
9-
getBackendSrv,
10-
getDataSourceSrv,
11-
SystemJS,
12-
} from '@grafana/runtime';
8+
import { getBackendSrv, getDataSourceSrv, SystemJS } from '@grafana/runtime';
139
import { Button, HorizontalGroup, VerticalGroup } from '@grafana/ui';
1410
import { shallow } from 'enzyme';
1511
import React from 'react';

src/buttonPanel.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { AppEvents, PanelProps } from '@grafana/data';
2-
import {
3-
getBackendSrv,
4-
getDataSourceSrv,
5-
SystemJS,
6-
} from '@grafana/runtime';
2+
import { getBackendSrv, getDataSourceSrv, SystemJS } from '@grafana/runtime';
73
import { Button, HorizontalGroup, VerticalGroup } from '@grafana/ui';
84
import React from 'react';
95
import { ButtonOptions, Options } from 'types';
@@ -19,9 +15,7 @@ export const ButtonPanel: React.FC<Props> = ({ options, replaceVariables }) => {
1915
key={index}
2016
variant={b.variant}
2117
onClick={async () => {
22-
const payload = JSON.parse(
23-
replaceVariables(b.query || '{}')
24-
);
18+
const payload = JSON.parse(replaceVariables(b.query || '{}'));
2519
const ds = await getDataSourceSrv().get(b.datasource);
2620
try {
2721
const resp = await getBackendSrv().datasourceRequest({

0 commit comments

Comments
 (0)