Skip to content

Commit

Permalink
Merge pull request #236 from dbmi-bgm/pedpane-fileupload-fix-ui-1
Browse files Browse the repository at this point in the history
fix for disappearing pedigree pane file upload bug
  • Loading branch information
Bianca-Morris committed Nov 4, 2020
2 parents 4f70e75 + 0a9efce commit b572964
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
# Note: Various modules refer to this system as "encoded", not "cgap-portal".
name = "encoded"
version = "4.1.1"
version = "4.1.2"
description = "Clinical Genomics Analysis Platform"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const PedigreeTabView = React.memo(function PedigreeTabView(props){
</h3>
</div>
<hr className="tab-section-title-horiz-divider"/>
<PedigreeTabViewBody {...pedigreeTabViewBodyProps} />
<PedigreeTabViewBody {...pedigreeTabViewBodyProps} {...{ schemas }} />
</div>
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ export class PedigreeTabViewBody extends React.PureComponent {
}

renderDetailPane(pedigreeVizProps){
const { session, href, context } = this.props;
return <PedigreeDetailPane {...pedigreeVizProps} {...{ session, href, context }} />;
const { session, href, context, schemas } = this.props;
const { Individual : indvSchema = null, Document: docSchema = null, Image: imageSchema = null } = schemas || {};
return <PedigreeDetailPane {...pedigreeVizProps} {...{ session, href, context, indvSchema, docSchema, imageSchema }} />;
}

render(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class FileWrapper extends React.PureComponent {
const { properties = {} } = indvSchema || {};
// Isolate the field/property names of linkTos with type Document or Image
const allProperties = _.keys(properties);
const relevantFields = [];
const relevantFields = []; // If need to bundle more properties, see https://github.com/dbmi-bgm/cgap-portal/pull/236 for potential implementation notes

allProperties.forEach(function(property){
const propertyFields = properties[property];
Expand All @@ -39,7 +39,6 @@ export class FileWrapper extends React.PureComponent {
relevantFields.push({ [property]: items["linkTo"] });
}
});
console.log("relevantFields", relevantFields);
return relevantFields;
}

Expand Down

0 comments on commit b572964

Please sign in to comment.