File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/apps/review/src/pages/scorecards/ViewScorecardPage Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const ViewScorecardPage: FC = () => {
24
24
[ ] ,
25
25
)
26
26
27
- const { scorecard } = useFetchScorecard ( scorecardId )
27
+ const scorecardQuery = useFetchScorecard ( scorecardId )
28
28
29
29
return (
30
30
< PageWrapper
@@ -36,24 +36,24 @@ const ViewScorecardPage: FC = () => {
36
36
icon = { PencilIconWrapper }
37
37
className = 'borderButton'
38
38
secondary
39
- to = " edit"
39
+ to = ' edit'
40
40
>
41
41
Edit Scorecard
42
42
</ LinkButton >
43
43
) }
44
44
>
45
45
{
46
- scorecard && (
46
+ scorecardQuery . scorecard && (
47
47
< div className = { styles . container } >
48
48
< div className = { styles . section } >
49
49
< h3 className = { styles . heading } > 1. Scorecard Information</ h3 >
50
- { scorecard && < ScorecardDetails scorecard = { scorecard } /> }
50
+ < ScorecardDetails scorecard = { scorecardQuery . scorecard } />
51
51
</ div >
52
52
{
53
- scorecard . scorecardGroups . length > 0 && (
53
+ scorecardQuery . scorecard . scorecardGroups . length > 0 && (
54
54
< div className = { cn ( styles . section , styles . evaluationStructureSection ) } >
55
55
< h3 className = { styles . heading } > 2. Evaluation Structure</ h3 >
56
- < ScorecardGroups groups = { scorecard . scorecardGroups } />
56
+ < ScorecardGroups groups = { scorecardQuery . scorecard . scorecardGroups } />
57
57
</ div >
58
58
)
59
59
}
You can’t perform that action at this time.
0 commit comments