Skip to content

Commit

Permalink
[#17] Fix onClick handler to be called with no parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Dec 5, 2023
1 parent db7aa2c commit 3e68e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Dashboard extends React.Component {
if (!formTemplate) {
return <Col md={3} className='dashboard-sector'>
<DashboardTile
onClick={this.props.handlers.showRecords}>{this.i18n('dashboard.records-tile')}</DashboardTile>
onClick={() => this.props.handlers.showRecords()}>{this.i18n('dashboard.records-tile')}</DashboardTile>
</Col>
}
const showRecordsOfTemplate = () => {
Expand Down

0 comments on commit 3e68e85

Please sign in to comment.