Skip to content

Commit

Permalink
Merge pull request #137 from autonomys/fix-global-files
Browse files Browse the repository at this point in the history
fix: global files view fail when files are archived
  • Loading branch information
clostao authored Jan 14, 2025
2 parents 552996e + 7edb5a4 commit 3a85d58
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/views/GlobalFiles/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export const objectSummaryFromGlobalFilesQuery = (
mimeType: m.root_metadata?.mimeType,
children: m.root_metadata?.children,
uploadStatus: {
uploadedNodes: m.root_metadata!.publishedNodes.aggregate?.count ?? 0,
archivedNodes: m.root_metadata!.archivedNodes.aggregate?.count ?? 0,
totalNodes: m.root_metadata!.totalNodes.aggregate?.count ?? 0,
uploadedNodes: m.root_metadata!.publishedNodes?.aggregate?.count ?? 0,
archivedNodes: m.root_metadata!.archivedNodes?.aggregate?.count ?? 0,
totalNodes: m.root_metadata!.totalNodes?.aggregate?.count ?? 0,
minimumBlockDepth:
m.root_metadata!.minimumBlockDepth[0].transaction_result?.blockNumber ??
null,
m.root_metadata!.minimumBlockDepth?.[0]?.transaction_result
?.blockNumber ?? null,
maximumBlockDepth:
m.root_metadata!.maximumBlockDepth[0].transaction_result?.blockNumber ??
null,
m.root_metadata!.maximumBlockDepth?.[0]?.transaction_result
?.blockNumber ?? null,
},
}));
};

0 comments on commit 3a85d58

Please sign in to comment.