Explore: Fix split functionality (#23801)

* Fix splitting functionality, remove passing of parameters from button

* Format comment
This commit is contained in:
Ivana Huckova 2020-04-23 11:20:07 +02:00 committed by GitHub
parent 3eddce3258
commit 645dc944db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,10 @@ export class UnConnectedExploreToolbar extends PureComponent<Props> {
<ResponsiveButton
splitted={splitted}
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"
iconClassName="icon-margin-right"
disabled={isLive}