Skip to content

Commit

Permalink
#1153 | Refresh TaskList, to reflect the change in date on TaskCard, …
Browse files Browse the repository at this point in the history
…on rescheduling a task
  • Loading branch information
himeshr committed Oct 26, 2023
1 parent 9c0ac36 commit c57fbfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/openchs-android/src/views/task/TaskCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import SubjectRegisterFromTaskView from '../individual/SubjectRegisterFromTaskVi
import {DateTimePickerAndroid} from '@react-native-community/datetimepicker';
import AvniIcon from '../common/AvniIcon';
import General from '../../utility/General';
import {Actions as TaskListActions} from '../../action/task/TaskListActions';

const CardSecondRow = function ({task, I18n}) {
return (
Expand Down Expand Up @@ -71,6 +72,7 @@ class TaskCard extends AbstractComponent {
onDateChange(event, date, task) {
if (event.type !== "dismissed") {
this.dispatchAction(Actions.ON_RE_SCHEDULED, {task, date});
this.dispatchAction(TaskListActions.ON_REFRESH);
}
}
renderSubjectDetails(task) {
Expand Down

0 comments on commit c57fbfb

Please sign in to comment.