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

* Fixes #17592

* Remove console.log
pull/17662/head
Tobias Skarhed 6 years ago committed by Torkel Ödegaard
parent 35e1524b02
commit 7eb820081d
  1. 2
      public/app/features/dashboard/components/AddPanelWidget/AddPanelWidget.tsx

@ -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') => {

Loading…
Cancel
Save