Skip to content

Commit

Permalink
#1193 - added custom dashboard action call after reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Dec 7, 2023
1 parent efd7b0e commit 909982e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/openchs-android/src/views/SyncComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 909982e

Please sign in to comment.