Skip to content

Commit

Permalink
Merge pull request #435 from KPMP/develop
Browse files Browse the repository at this point in the history
last minute changes
  • Loading branch information
rlreamy authored Oct 2, 2023
2 parents f2368da + eaae5c1 commit a7163c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Home/AvailableDatasetsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class AvailableDatasetsTable extends Component {

handleDataTypeValueClick(row, controlAccess) {
let linkType = row.linkInformation.linkType;
let linkValue = row.linkInformation.linkValue;
let linkValue = row.linkInformation.linkValue.replace('&', '%26');
let mapping = `/repository/?size=n_20_n&filters[0][field]=access&filters[0][values][0]=${controlAccess}&filters[0][type]=any&filters[1][field]=${linkType}&filters[1][values][0]=${linkValue}&filters[1][type]=any`;
if(linkType && linkValue){
return encodeURI(mapping);
return encodeURI(mapping).replace('%2526', '%26');
} else {
this.props.history.push('/oops');
throw new Error('Datatype not found', row.omicsType)
Expand Down

0 comments on commit a7163c2

Please sign in to comment.