Skip to content

Commit

Permalink
Export exportable dashboard only
Browse files Browse the repository at this point in the history
  • Loading branch information
biaoli0 committed Sep 20, 2022
1 parent 877365c commit 4ff6f86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lesmis/src/utils/getExportableSubDashboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ export const getExportableSubDashboards = dropdownOption => {
dashboardLabel: otherDropdownOptions[index].label,
sortOrder: index,
useYearSelector: otherDropdownOptions[index].useYearSelector,
exportToPDF: otherDropdownOptions[index].exportToPDF,
};
})
.filter(({ exportToPDF }) => exportToPDF)
.sort((a, b) => a.sortOrder - b.sortOrder);
}

Expand Down

0 comments on commit 4ff6f86

Please sign in to comment.