From 941936cf97fde0e7645b7f44e7dbb8538a53e2b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 18 Jun 2021 08:03:42 +0200 Subject: [PATCH] LibraryPanels: Fixes crash in libray panels list when panel plugin is not found (#35907) --- .../components/LibraryPanelCard/LibraryPanelCard.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/features/library-panels/components/LibraryPanelCard/LibraryPanelCard.tsx b/public/app/features/library-panels/components/LibraryPanelCard/LibraryPanelCard.tsx index 17daf6e987f..7295c880dd6 100644 --- a/public/app/features/library-panels/components/LibraryPanelCard/LibraryPanelCard.tsx +++ b/public/app/features/library-panels/components/LibraryPanelCard/LibraryPanelCard.tsx @@ -1,12 +1,12 @@ import React, { useState } from 'react'; import { css } from '@emotion/css'; -import { GrafanaTheme2, PanelPluginMeta } from '@grafana/data'; -import { config } from '@grafana/runtime'; +import { GrafanaTheme2 } from '@grafana/data'; import { Icon, Link, useStyles2 } from '@grafana/ui'; - import { LibraryElementDTO } from '../../types'; import { PanelTypeCard } from 'app/features/dashboard/components/VizTypePicker/PanelTypeCard'; import { DeleteLibraryPanelModal } from '../DeleteLibraryPanelModal/DeleteLibraryPanelModal'; +import { config } from '@grafana/runtime'; +import { getPanelPluginNotFound } from 'app/features/dashboard/dashgrid/PanelPluginError'; export interface LibraryPanelCardProps { libraryPanel: LibraryElementDTO; @@ -28,7 +28,7 @@ export const LibraryPanelCard: React.FC