AddPanel: Fix issue when removing moved add panel widget (#17659)

* Fixes #17592

* Remove console.log
This commit is contained in:
Tobias Skarhed 2019-06-19 13:12:04 +02:00 committed by Torkel Ödegaard
parent 35e1524b02
commit 7eb820081d

View File

@ -60,7 +60,7 @@ export class AddPanelWidget extends React.Component<Props, State> {
handleCloseAddPanel(evt) {
evt.preventDefault();
this.props.dashboard.removePanel(this.props.dashboard.panels[0]);
this.props.dashboard.removePanel(this.props.panel);
}
onCreateNewPanel = (tab = 'queries') => {