Skip to content

Commit

Permalink
Merge pull request #138 from CBIIT/dev-1.1.0
Browse files Browse the repository at this point in the history
Dev 1.1.0
  • Loading branch information
n2iw authored Dec 23, 2022
2 parents 26d9769 + c47f005 commit cb4c8a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Binary file modified public/Release_v1.1.0.pdf
Binary file not shown.
6 changes: 2 additions & 4 deletions src/pages/caseDetail/caseDetailController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
import { useSelector } from 'react-redux';
import CircularProgress from '@material-ui/core/CircularProgress';
import CaseDetailView from './caseDetailView';
import { Typography } from '../../components/Wrappers/Wrappers';
import Error from '../error/Error';
import {
dataRoot, caseIDField,
} from '../../bento/caseDetailData';
Expand Down Expand Up @@ -33,9 +33,7 @@ const CaseDetailContainer = ({ match }) => {
if (loading) return <CircularProgress />;
if (error || !data || data[dataRoot][caseIDField] !== match.params.id) {
return (
<Typography variant="h5" color="error" size="sm">
{error ? `An error has occurred in loading stats component: ${error}` : 'Recieved wrong data'}
</Typography>
<Error />
);
}

Expand Down
8 changes: 3 additions & 5 deletions src/pages/programDetail/programDetailController.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import _ from 'lodash';
import { useQuery } from '@apollo/client';
import CircularProgress from '@material-ui/core/CircularProgress';
import ProgramView from './programDetailView';
import { Typography } from '../../components/Wrappers/Wrappers';
import Error from '../error/Error';
import { GET_PROGRAM_DETAIL_DATA_QUERY } from '../../bento/programDetailData';
import {
GET_PROJECTS_OVERVIEW_QUERY,
Expand Down Expand Up @@ -56,11 +56,9 @@ const ProgramDetailContainer = ({ match }) => {
}

if (programDetailsLoading || projectOverviewLoading) return <CircularProgress />;
if (programDetailsError || projectOverviewError || !programDetailsData || !projectOverviewData || programDetailsData.programDetail.program_id !== match.params.id) {
if (programDetailsError || projectOverviewError || !programDetailsData || !projectOverviewData || !programDetailsData.programDetail || programDetailsData.programDetail.program_id !== match.params.id) {
return (
<Typography variant="headline" color="error" size="sm">
{programDetailsError ? `An error has occurred in loading stats component: ${programDetailsError}` : projectOverviewError ? `An error has occurred in loading stats component: ${projectOverviewError}` : 'Recieved wrong data'}
</Typography>
<Error />
);
}
return <ProgramView data={[transformedData, projectOverviewData]} />;
Expand Down

0 comments on commit cb4c8a9

Please sign in to comment.