We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48a826 commit 9286df4Copy full SHA for 9286df4
1 file changed
src/pages/home/report/ReportActionsView.tsx
@@ -276,7 +276,13 @@ function ReportActionsView({
276
};
277
}, [isTheFirstReportActionIsLinked]);
278
279
- if ((isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline) ?? isLoadingApp) {
+ // Show skeleton while loading initial report actions when data is incomplete/missing and online
280
+ const shouldShowSkeletonForInitialLoad = isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline;
281
+
282
+ // Show skeleton while the app is loading and we're online
283
+ const shouldShowSkeletonForAppLoad = isLoadingApp && !isOffline;
284
285
+ if (shouldShowSkeletonForInitialLoad ?? shouldShowSkeletonForAppLoad) {
286
return <ReportActionsSkeletonView />;
287
}
288
0 commit comments