From 6fe737547bb9a9b22c7b53d9faae9ca8985b9eaf Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Thu, 7 Dec 2023 08:21:14 +0530 Subject: [PATCH] #1193 - added custom dashboard action call after reset. --- packages/openchs-android/src/views/SyncComponent.js | 3 --- .../src/views/customDashboard/CustomDashboardView.js | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/openchs-android/src/views/SyncComponent.js b/packages/openchs-android/src/views/SyncComponent.js index c68220ec4..a2aff5d0d 100644 --- a/packages/openchs-android/src/views/SyncComponent.js +++ b/packages/openchs-android/src/views/SyncComponent.js @@ -49,9 +49,6 @@ class SyncComponent extends AbstractComponent { this.context.getService(SyncService).resetServicesAfterFullSyncCompletion(SyncService.syncSources.SYNC_BUTTON); this.dispatchAction(SyncActions.POST_SYNC); this.setState({syncStarted: false}); - LocalCacheService.getPreviouslySelectedSubjectTypeUuid().then(cachedSubjectTypeUUID => { - this.dispatchAction(Actions.ON_LOAD, {cachedSubjectTypeUUID}); - }); General.logInfo(this.viewName(), 'Sync completed dispatching reset'); } diff --git a/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js b/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js index ae36cf3d1..5bc618500 100644 --- a/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js +++ b/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js @@ -27,6 +27,7 @@ import ChecklistListingView from "../checklist/ChecklistListingView"; import {FilterActionNames} from '../../action/mydashboard/FiltersActionsV2'; import Distances from '../primitives/Distances'; import AppliedFiltersV2 from '../filter/AppliedFiltersV2'; +import General from "../../utility/General"; @Path('/customDashboardView') class CustomDashboardView extends AbstractComponent { @@ -212,6 +213,7 @@ class CustomDashboardView extends AbstractComponent { } render() { + General.logDebug("CustomDashboardView", "render"); const title = this.props.title || 'dashboards'; const {hasFilters, loading} = this.state; return (