Skip to content

Commit

Permalink
fix(overview): broken loading state calculation (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug authored Oct 18, 2024
1 parent a87b515 commit 05d89be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/reducers/overview/overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function useGetMultiOverviewQuery({
);

const {
currentData: currentChindrenDescribe = [],
currentData: currentChindrenDescribe,
isFetching: childrenDescribeIsFetching,
error: childrenDescribeError,
} = overviewApi.useGetMultiOverviewQuery(
Expand All @@ -123,7 +123,7 @@ export function useGetMultiOverviewQuery({

const loading = mainDescribeLoading || childrenDescribeLoading;

const describe = [mainDescribe, ...currentChindrenDescribe];
const describe = [mainDescribe, ...(currentChindrenDescribe ?? [])];

const mergedDescribe = describe.reduce<IDescribeData>((acc, item) => {
if (item?.Path) {
Expand Down

0 comments on commit 05d89be

Please sign in to comment.