Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/graphql/studies/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface IStudyDataset {
is_harmonized?: boolean;
publications?: string[];
publications_details?: ArrangerResultsTree<IPublicationDetails>;
has_participant_docs?: boolean;
}

export interface IAuthor {
Expand Down
1 change: 1 addition & 0 deletions src/graphql/studies/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export const GET_STUDY = gql`
experimental_platform
experimental_strategy
external_dataset_id
has_participant_docs
is_harmonized
publications
publications_details {
Expand Down
4 changes: 2 additions & 2 deletions src/views/StudyEntity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ const StudyEntity = () => {
</Title>
{study?.datasets?.hits.edges.map(({ node: dataset }, index: number) => {
const titleExtra = [];

if (dataset.dataset_name && dataset.is_harmonized) {
const hasDocsInExploration = dataset.has_participant_docs;
if (hasDocsInExploration) {
titleExtra.push(
<Button
className={style.datasetBtn}
Expand Down