Skip to content

Commit

Permalink
Home page does not need to load ALL stats. That's what Stat Totals is…
Browse files Browse the repository at this point in the history
… for. Much faster loading page for the home screen now.
  • Loading branch information
handstandsam committed Nov 27, 2024
1 parent 98f673c commit 51e65a5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ fun HomeComposable(
}
}

val statsDataOrig by reportDataRepo.statsData.collectAsState(null)
val statTotalsOrig by reportDataRepo.statTotals.collectAsState(null)
val moduleToOwnerMapFlowValue by reportDataRepo.moduleToOwnerMap.collectAsState(null)

Expand All @@ -107,16 +106,12 @@ fun HomeComposable(
return
}

if (statsDataOrig == null || statTotalsOrig == null) {
if (statTotalsOrig == null) {
BootstrapLoadingMessageWithSpinner("Loading...")
return
}

val statTotals = statTotalsOrig!!
val statsData = statsDataOrig!!

val statInfos = statsData.statInfos.values


BootstrapRow {
HomeCountComposable(
Expand Down

0 comments on commit 51e65a5

Please sign in to comment.