Skip to content

Commit

Permalink
Revert "#1292 | Debounce the onCardPress action for CustomDashboardCa…
Browse files Browse the repository at this point in the history
…rd, to avoid triggering multiple transitions"

This reverts commit 21458ca.
  • Loading branch information
himeshr committed Feb 27, 2024
1 parent fde5af1 commit ed2c847
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' ?
<CardTileView reportCard={reportCard} I18n={this.I18n} onCardPress={onCardPressOp} index={index} countResult={countResult} /> :
<CardListView reportCard={reportCard} I18n={this.I18n} onCardPress={onCardPressOp} countResult={countResult} />
<CardTileView reportCard={reportCard} I18n={this.I18n} onCardPress={onCardPress} index={index} countResult={countResult} /> :
<CardListView reportCard={reportCard} I18n={this.I18n} onCardPress={onCardPress} countResult={countResult} />
}

}

0 comments on commit ed2c847

Please sign in to comment.