File tree Expand file tree Collapse file tree 5 files changed +14
-2
lines changed
cypress/fixtures/ResponseBody Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 366366 " longitudinal"
367367 ],
368368 "study_meta_categories" : [],
369+ "study_websites" : [
370+ " https://www.trisome.org/"
371+ ],
369372 "website" : " https://www.trisome.org/" ,
370373 "data_category" : [
371374 " Transcriptomics"
Original file line number Diff line number Diff line change @@ -119,5 +119,6 @@ export interface IStudyEntity {
119119 selection_criteria ?: string [ ] ;
120120 study_designs ?: string [ ] ;
121121 study_meta_categories ?: string [ ] ;
122+ study_websites ?: string [ ] ;
122123 website : string ;
123124}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export const GET_STUDIES = gql`
4747 publications
4848 participant_count
4949 study_designs
50+ study_websites
5051 selection_criteria
5152 website
5253 }
@@ -166,6 +167,7 @@ export const GET_STUDY = gql`
166167 study_designs
167168 study_meta_categories
168169 study_name
170+ study_websites
169171 website
170172 data_category
171173 data_sources
@@ -258,6 +260,7 @@ export const SEARCH_STUDIES_QUERY = gql`
258260 attribution
259261 data_category
260262 website
263+ study_websites
261264 }
262265 }
263266 }
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export interface IPublicStudyEntity {
6060 study_designs ?: string [ ] ;
6161 study_id ?: string ;
6262 study_meta_categories ?: string [ ] ;
63+ study_websites ?: string [ ] ;
6364 study_name ?: string ;
6465 version ?: string ;
6566 website ?: string ;
Original file line number Diff line number Diff line change @@ -203,10 +203,14 @@ const getSummaryDescriptions = ({
203203 } ) ;
204204 }
205205
206- if ( study ?. website ) {
206+ if ( study ?. study_websites ?. length ) {
207207 result . push ( {
208208 label : intl . get ( 'entities.study.study_website' ) ,
209- value : < ExternalLink href = { study . website } > { study . website } </ ExternalLink > ,
209+ value : study . study_websites . map ( ( website , index ) => (
210+ < div key = { index } >
211+ < ExternalLink href = { website } > { website } </ ExternalLink >
212+ </ div >
213+ ) ) ,
210214 } ) ;
211215 }
212216
You can’t perform that action at this time.
0 commit comments