File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
frontend/packages/data-portal/app Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export function RunHeader() {
54
54
55
55
const { openRunDownloadModal } = useDownloadModalQueryParamState ( )
56
56
57
- const framesCount = run . framesAggregate ?. aggregate ?. [ 0 ] ?. count ?? 0
57
+ const framesCount = run . frames . edges . length
58
58
const tiltSeriesCount = run . tiltseriesAggregate ?. aggregate ?. [ 0 ] ?. count ?? 0
59
59
const annotationsCount = annotationFilesAggregates . totalCount
60
60
const tomogramId = tomogramV2 ?. id ?. toString ( )
Original file line number Diff line number Diff line change @@ -186,11 +186,19 @@ const GET_RUN_BY_ID_QUERY_V2 = gql(`
186
186
}
187
187
188
188
# 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
+ }
192
199
}
193
200
}
201
+
194
202
tiltseriesAggregate {
195
203
aggregate {
196
204
count
You can’t perform that action at this time.
0 commit comments