LibrayPanels: Fix unlinking libray panel (#57825)

This commit is contained in:
Torkel Ödegaard
2022-11-02 11:38:48 +01:00
committed by GitHub
parent 30dc0f56a4
commit d7f9093ccd
3 changed files with 8 additions and 6 deletions

View File

@@ -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,
},
})