mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Fix split functionality (#23801)
* Fix splitting functionality, remove passing of parameters from button * Format comment
This commit is contained in:
parent
3eddce3258
commit
645dc944db
@ -281,7 +281,10 @@ export class UnConnectedExploreToolbar extends PureComponent<Props> {
|
|||||||
<ResponsiveButton
|
<ResponsiveButton
|
||||||
splitted={splitted}
|
splitted={splitted}
|
||||||
title="Split"
|
title="Split"
|
||||||
onClick={split}
|
/* This way ResponsiveButton doesn't add event as a parameter when invoking split function
|
||||||
|
* which breaks splitting functionality
|
||||||
|
*/
|
||||||
|
onClick={() => split()}
|
||||||
icon="columns"
|
icon="columns"
|
||||||
iconClassName="icon-margin-right"
|
iconClassName="icon-margin-right"
|
||||||
disabled={isLive}
|
disabled={isLive}
|
||||||
|
Loading…
Reference in New Issue
Block a user