From 276dc632f6dd91ab87149b31591c343d0db893bf Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 18 Jun 2021 02:31:16 -0400 Subject: [PATCH] LibraryPanels: Fixes crash in libray panels list when panel plugin is not found (#35907) (#35921) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 941936cf97fde0e7645b7f44e7dbb8538a53e2b1) Co-authored-by: Torkel Ödegaard --- .../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