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

@@ -370,8 +370,7 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
onClick={() => {
showModal(UnlinkModal, {
onConfirm: () => {
delete this.props.panel.libraryPanel;
this.props.panel.render();
this.props.panel.unlinkLibraryPanel();
this.forceUpdate();
},
onDismiss: hideModal,