Skip to content

Commit

Permalink
Merge pull request #114 from KPMP/develop
Browse files Browse the repository at this point in the history
KPMP-5673: DPR Fix
  • Loading branch information
rlreamy authored Nov 6, 2024
2 parents 86a83e5 + 8a6509c commit b02efe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/Participants/participantActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const getParticipantSlides = (participantId, props) => {
for (let key of keys) {
sortedData[key] = newData[key]
}
dispatch(setSelectedParticipant({id: participantId, slides: sortedData, selectedSlide:sortedData["(LM) Light Microscopy"][0], selectedAccordion: "(LM) Light Microscopy"}));
let defaultSlideType = ("(LM) Light Microscopy" in sortedData) ? "(LM) Light Microscopy" : keys[0]
dispatch(setSelectedParticipant({id: participantId, slides: sortedData, selectedSlide:sortedData[defaultSlideType][0], selectedAccordion: defaultSlideType}));
props.history.push(process.env.PUBLIC_URL + "/slides");
})
.catch(err => {
Expand Down

0 comments on commit b02efe4

Please sign in to comment.