Skip to content

Commit

Permalink
Prevent pager from showing stale images.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctslater committed Dec 6, 2024
1 parent 24cdb9d commit c4b33f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/_components/plotDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export default async function PlotDisplay({plotEntry, showDataId = true, showDat

const splitType = [...datasetType.matchAll(/[a-zA-Z0-9]*(_|$)/g)].map((x) => x[0])
const typeWithWbr = splitType.join('\u00ad')
/*
const typeWithWbr = splitType.map((x) => [x, <wbr/>]).flat()
console.log(typeWithWbr)
*/

const dataIdString = Object.entries(dataId).map(([k,v]) => `${k}: ${v}`).join(', ')

Expand All @@ -25,7 +21,7 @@ export default async function PlotDisplay({plotEntry, showDataId = true, showDat
{ showDatasetType ? typeWithWbr : "" }
</div>
{ showPermalink ? <div className="text-1xl float-right"><a href={`${process.env.BASE_URL ?? ''}/${permalink}`}>Plot link</a></div> : "" }
<img src={`${process.env.BASE_URL ?? '' }/images/uuid/${encodeURIComponent(repo)}/${uuid}`} />
<img key={uuid} src={`${process.env.BASE_URL ?? '' }/images/uuid/${encodeURIComponent(repo)}/${uuid}`} />
</div>

)
Expand Down

0 comments on commit c4b33f4

Please sign in to comment.