Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const PdsGoalCalculatorContent: React.FC<PdsGoalCalculatorContentProps> = ({
}) => {
const {
rightPanelContent,
rightPanelTitle,
closeRightPanel,
calculation,
calculationLoading,
Expand All @@ -67,7 +68,9 @@ const PdsGoalCalculatorContent: React.FC<PdsGoalCalculatorContentProps> = ({
const rightPanel = (
<>
<RightPanelHeader>
<RightPanelTitle variant="h6">{t('Details')}</RightPanelTitle>
<RightPanelTitle variant="h6">
{rightPanelTitle ?? t('Details')}
</RightPanelTitle>
<IconButton
size="small"
onClick={closeRightPanel}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
fragment DesignationSupportHoursItemFields on DesignationSupportHoursItem {
id
hoursPerWeek
numberOfWeeks
name
label
position
predefined
}

fragment PdsGoalCalculationFields on DesignationSupportCalculation {
id
name
Expand All @@ -19,13 +29,7 @@ fragment PdsGoalCalculationFields on DesignationSupportCalculation {
ministryTravelMeals
otherAnnualReimbursements
designationSupportHoursItems {
id
hoursPerWeek
numberOfWeeks
name
label
position
predefined
...DesignationSupportHoursItemFields
}
}

Expand Down Expand Up @@ -78,13 +82,7 @@ mutation CreateDesignationSupportHoursItem(
) {
createDesignationSupportHoursItem(input: { attributes: $attributes }) {
designationSupportHoursItem {
id
hoursPerWeek
numberOfWeeks
name
label
position
predefined
...DesignationSupportHoursItemFields
}
}
}
Expand All @@ -94,13 +92,7 @@ mutation UpdateDesignationSupportHoursItem(
) {
updateDesignationSupportHoursItem(input: { attributes: $attributes }) {
designationSupportHoursItem {
id
hoursPerWeek
numberOfWeeks
name
label
position
predefined
...DesignationSupportHoursItemFields
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ describe('HoursPerWeekGrid', () => {
</PdsGoalCalculatorTestWrapper>,
);

expect(await findByText('Hours Per Week Calculator')).toBeInTheDocument();
await waitForDataToLoad();
expect(await findByText('Regular Week')).toBeInTheDocument();
expect(getByText('Travel')).toBeInTheDocument();
Expand Down
Loading
Loading