Skip to content

Commit

Permalink
Bugfix: download links nested in sub-array (#7811)
Browse files Browse the repository at this point in the history
Resolves #7810
  • Loading branch information
jesscall authored Nov 15, 2021
1 parent 54e1c0e commit ff55383
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,22 @@ class ElectrophysiologySessionView extends Component {
),
epochsURL:
dbEntry
&& dbEntry.file.downloads[3]?.file
&& loris.BaseURL
+ '/electrophysiology_browser/file_reader/?file='
+ dbEntry.file.downloads[3].file,
&& dbEntry.file.downloads.map(
(group) =>
group.links[3]?.file
&& loris.BaseURL
+ '/electrophysiology_browser/file_reader/?file='
+ group.links[3].file
),
electrodesURL:
dbEntry
&& dbEntry.file.downloads[1]?.file
&& loris.BaseURL
+ '/electrophysiology_browser/file_reader/?file='
+ dbEntry.file.downloads[1].file,
&& dbEntry.file.downloads.map(
(group) =>
group.links[1]?.file
&& loris.BaseURL
+ '/electrophysiology_browser/file_reader/?file='
+ group.links[1].file
),
}));

this.setState({
Expand Down

0 comments on commit ff55383

Please sign in to comment.