From ed2c847fc5da145a4da354af274c7b7ec9539d06 Mon Sep 17 00:00:00 2001 From: himeshr Date: Tue, 27 Feb 2024 13:08:56 +0530 Subject: [PATCH] Revert "#1292 | Debounce the onCardPress action for CustomDashboardCard, to avoid triggering multiple transitions" This reverts commit 21458cab2ef0dc63ebb213a2e7036c60278ad5ed. --- .../src/views/customDashboard/CustomDashboardCard.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/openchs-android/src/views/customDashboard/CustomDashboardCard.js b/packages/openchs-android/src/views/customDashboard/CustomDashboardCard.js index 7eedd9914..0efa34289 100644 --- a/packages/openchs-android/src/views/customDashboard/CustomDashboardCard.js +++ b/packages/openchs-android/src/views/customDashboard/CustomDashboardCard.js @@ -16,10 +16,9 @@ export default class CustomDashboardCard extends AbstractComponent { render() { const {reportCard, index, viewType, onCardPress, countResult, countUpdateTime } = this.props; - const onCardPressOp = _.debounce(onCardPress, 500); return viewType === 'Tile' ? - : - + : + } }