Skip to content

Commit

Permalink
fix: option group type
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-soltech committed Oct 20, 2023
1 parent 1c87082 commit 076efa6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ interface FormShape {

export const ExplanationOfProgress: StepComponent = ({ report }) => {
const { varianceExplanation: explanation } = report;
const optionsByGroup = explanation.reasonOptions;
const optionsByGroup: Record<OptionGroup, readonly string[]> =

Check failure on line 55 in src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.tsx

View workflow job for this annotation

GitHub Actions / run

Property 'deprecated' is missing in type '{ readonly __typename?: "ProgressReportVarianceExplanationReasonOptions" | undefined; } & Pick<ProgressReportVarianceExplanationReasonOptions, "behind" | ... 1 more ... | "onTime">' but required in type 'Record<OptionGroup, readonly string[]>'.
explanation.reasonOptions;

const [explainVariance] = useMutation(ExplainProgressVarianceDocument);
const [savedAt, setSavedAt] = useState<DateTime | null>(null);
Expand Down

0 comments on commit 076efa6

Please sign in to comment.