mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LibrayPanels: Fix unlinking libray panel (#57825)
This commit is contained in:
@@ -87,10 +87,7 @@ export const unlinkLibraryPanel = (panel: PanelModel) => {
|
||||
new ShowModalReactEvent({
|
||||
component: UnlinkModal,
|
||||
props: {
|
||||
onConfirm: () => {
|
||||
delete panel.libraryPanel;
|
||||
panel.render();
|
||||
},
|
||||
onConfirm: () => panel.unlinkLibraryPanel(),
|
||||
isOpen: true,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user