Skip to content

Commit 411b915

Browse files
fix: frames available (#1786)
1 parent ef5de20 commit 411b915

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

frontend/packages/data-portal/app/components/Run/RunHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function RunHeader() {
5454

5555
const { openRunDownloadModal } = useDownloadModalQueryParamState()
5656

57-
const framesCount = run.framesAggregate?.aggregate?.[0]?.count ?? 0
57+
const framesCount = run.frames.edges.length
5858
const tiltSeriesCount = run.tiltseriesAggregate?.aggregate?.[0]?.count ?? 0
5959
const annotationsCount = annotationFilesAggregates.totalCount
6060
const tomogramId = tomogramV2?.id?.toString()

frontend/packages/data-portal/app/graphql/getRunByIdV2.server.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,19 @@ const GET_RUN_BY_ID_QUERY_V2 = gql(`
186186
}
187187
188188
# Header
189-
framesAggregate {
190-
aggregate {
191-
count
189+
# Filter by non-null frame file path since it can be null
190+
frames(where: {
191+
httpsFramePath: {
192+
_is_null: false
193+
},
194+
}) {
195+
edges {
196+
node {
197+
id
198+
}
192199
}
193200
}
201+
194202
tiltseriesAggregate {
195203
aggregate {
196204
count

0 commit comments

Comments
 (0)