Library Panels: Don't list current panel in available panels list (#31472)

This commit is contained in:
kay delaney
2021-02-25 13:20:02 +00:00
committed by GitHub
parent ad68f3c5e6
commit 8379f36a68
2 changed files with 9 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ export const PanelLibraryOptionsGroup: React.FC<Props> = ({ panel, dashboard })
>
<LibraryPanelsView
formatDate={(dateString: string) => dashboard.formatDate(dateString, 'L')}
currentPanelId={panel.libraryPanel?.uid}
showSecondaryActions
>
{(panel) => (