mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 16:38:03 -06:00
AddPanel: Fix issue when removing moved add panel widget (#17659)
* Fixes #17592 * Remove console.log
This commit is contained in:
parent
35e1524b02
commit
7eb820081d
@ -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…
Reference in New Issue
Block a user