Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where patient pathway lacks a CNA profile #4403

Merged
merged 1 commit into from
Oct 28, 2022
Merged
Changes from all commits
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
14 changes: 9 additions & 5 deletions src/pages/patientView/pathwayMapper/PatientViewPathwayMapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import 'pathway-mapper/dist/base.css';
import 'cytoscape-panzoom/cytoscape.js-panzoom.css';
import 'cytoscape-navigator/cytoscape.js-navigator.css';
import SampleNotProfiledAlert from 'shared/components/SampleNotProfiledAlert';
import _ from 'lodash';
import LoadingIndicator from 'shared/components/loadingIndicator/LoadingIndicator';

interface IPatientViewPathwayMapperProps {
store: PatientViewPageStore;
Expand Down Expand Up @@ -120,7 +122,9 @@ export default class PatientViewPathwayMapper extends React.Component<

public render() {
if (!this.PathwayMapperComponent) {
return null;
return (
<LoadingIndicator isLoading={true} center={true} size={'big'} />
);
}

return (
Expand All @@ -137,10 +141,10 @@ export default class PatientViewPathwayMapper extends React.Component<
.genePanelDataByMolecularProfileIdAndSampleId
.result
}
molecularProfiles={[
this.props.store.mutationMolecularProfile.result!,
this.props.store.discreteMolecularProfile.result!,
]}
molecularProfiles={_.compact([
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@onursumer i will follow up with better more explicit fix

this.props.store.mutationMolecularProfile?.result!,
this.props.store.discreteMolecularProfile?.result!,
])}
/>

{/*@ts-ignore */}
Expand Down