mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Update dependency prettier to v2.5.1 (#43473)
* Update dependency prettier to v2.5.1 * prettier fixes * chore(toolkit): bump prettier to 2.5.1 * style(eslint): bump grafana config to 2.5.2 in core and toolkit * style(mssql-datasource): fix no-inferrable-types eslint errors Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com> Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
co-authored by
Renovate Bot
Ashley Harrison
Jack Westbrook
parent
3b4e812449
commit
d87cd6f26c
+1
-1
@@ -11,7 +11,7 @@ import { backendSrv } from '../../../../core/services/backend_srv';
|
||||
import * as panelUtils from '../../../panel/state/util';
|
||||
|
||||
jest.mock('@grafana/runtime', () => ({
|
||||
...((jest.requireActual('@grafana/runtime') as unknown) as object),
|
||||
...(jest.requireActual('@grafana/runtime') as unknown as object),
|
||||
config: {
|
||||
panels: {
|
||||
timeseries: {
|
||||
|
||||
+4
-3
@@ -30,9 +30,10 @@ export function OpenLibraryPanelModal({ libraryPanel, onDismiss }: OpenLibraryPa
|
||||
(searchString: string) => loadOptionsAsync(libraryPanel.uid, searchString, setLoading),
|
||||
[libraryPanel.uid]
|
||||
);
|
||||
const debouncedLoadOptions = useMemo(() => debounce(loadOptions, 300, { leading: true, trailing: true }), [
|
||||
loadOptions,
|
||||
]);
|
||||
const debouncedLoadOptions = useMemo(
|
||||
() => debounce(loadOptions, 300, { leading: true, trailing: true }),
|
||||
[loadOptions]
|
||||
);
|
||||
const onViewPanel = (e: MouseEvent<HTMLButtonElement>) => {
|
||||
e.preventDefault();
|
||||
locationService.push(urlUtil.renderUrl(`/d/${option?.value?.uid}`, {}));
|
||||
|
||||
Reference in New Issue
Block a user