Skip to content

Commit

Permalink
chore: 🔨 lint, format, type-check
Browse files Browse the repository at this point in the history
  • Loading branch information
greenstick committed Feb 13, 2024
1 parent 77ef9a6 commit 42b1e74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/study/dashboard/EditDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const routeParams = {
studyId: route.params.studyId as string,
};
// Load Default (Prior) Dashboard Module Selection
const checkboxGroupDefault = (report: RedcapReport) => {
let ids: string[] = [];
for (let j = 0; j < dashboardConnector.value.dashboard_modules.length; j++) {
Expand All @@ -39,6 +40,7 @@ const checkboxGroupDefault = (report: RedcapReport) => {
return ids;
};
// Render Dashboard Module for each Report
const reportDashboardModules = (report: RedcapReport) => {
let report_dashboard_modules = [];
for (let j = 0; j < dashboardConnector.value.dashboard_modules.length; j++) {
Expand All @@ -50,6 +52,7 @@ const reportDashboardModules = (report: RedcapReport) => {
return report_dashboard_modules;
};
// Handle Dashboard Module Selection
const selectDashboardModules = (ids: string[], report: RedcapReport) => {
let report_dashboard_modules = reportDashboardModules(report);
let selected_dashboard_modules = [];
Expand All @@ -70,7 +73,6 @@ const selectDashboardModules = (ids: string[], report: RedcapReport) => {
selected_dashboard_modules.push(connector_dashboard_module);
}
dashboardConnector.value.dashboard_modules = selected_dashboard_modules;
return dashboardConnector.value.dashboard_modules;
};
const formRef = ref<FormInst | null>(null);
Expand Down

0 comments on commit 42b1e74

Please sign in to comment.