Skip to content

Commit

Permalink
fix: fix single run page view tomogram button (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
kne42 authored Nov 6, 2024
1 parent 5a6ca7a commit da6902c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,15 @@ export function RunHeader() {
// Use author submitted tomogram if available, otherwise default to the first one
const tomogramV2 =
tomograms.find(
(currentTomogram) =>
// TODO use `isVisualizationDefault` when data is ready
currentTomogram.isAuthorSubmitted,
(currentTomogram) => currentTomogram.isVisualizationDefault,
) ?? tomograms.at(0)

const keyPhotoURL =
(multipleTomogramsEnabled
? tomogramV2?.keyPhotoUrl
: tomogram?.key_photo_url) ?? undefined

const neuroglancerConfig = tomogram?.neuroglancer_config
const neuroglancerConfig = tomogramV2?.neuroglancerConfig

const { openRunDownloadModal } = useDownloadModalQueryParamState()

Expand Down

0 comments on commit da6902c

Please sign in to comment.