From 3e68e85f3b3c19f4bc19ae7a5392f309c66755b8 Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Tue, 5 Dec 2023 16:48:20 +0100 Subject: [PATCH] [#17] Fix onClick handler to be called with no parameters --- js/components/dashboard/Dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/components/dashboard/Dashboard.js b/js/components/dashboard/Dashboard.js index b3e44453..c7298d86 100644 --- a/js/components/dashboard/Dashboard.js +++ b/js/components/dashboard/Dashboard.js @@ -68,7 +68,7 @@ class Dashboard extends React.Component { if (!formTemplate) { return {this.i18n('dashboard.records-tile')} + onClick={() => this.props.handlers.showRecords()}>{this.i18n('dashboard.records-tile')} } const showRecordsOfTemplate = () => {