Skip to content

Commit

Permalink
fix(app): show most recent protocol run data in carousel (#12837)
Browse files Browse the repository at this point in the history
Co-authored-by: Shlok Amin <[email protected]>
  • Loading branch information
b-cooper and shlokamin authored Jun 2, 2023
1 parent 6fe35bf commit b63584c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export function RecentRunProtocolCarousel({
>
<Flex flexDirection={DIRECTION_ROW} gridGap={SPACING.spacing8}>
{sortedProtocols.map((protocol: ProtocolResource) => {
const run = runs.data?.data.find(
run => run.protocolId === protocol.id
)
const run = runs.data?.data
.reverse()
.find(run => run.protocolId === protocol.id)
const protocolId = protocol.id
const protocolName =
protocol.metadata.protocolName ?? protocol.files[0].name
Expand Down

0 comments on commit b63584c

Please sign in to comment.