Skip to content

Commit

Permalink
fix(aggregation type field): allow "undefined" as value type in the v…
Browse files Browse the repository at this point in the history
…alidator
  • Loading branch information
Mohammer5 committed Feb 6, 2024
1 parent a41603c commit 495ca15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dataElements/fields/AggregationTypeField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function AggregationTypeField() {
validateFields={[]}
// @TODO: Why can I not use `FormValues` here?
// eslint-disable-next-line @typescript-eslint/no-explicit-any
validate={(value: string, values: any) => {
validate={(value: string | undefined, values: any) => {
const { valueType } = values
// Using the `disabled` value from above causes an issue:
// Warning: Cannot update a component (`ForwardRef(Field)`)
Expand Down

0 comments on commit 495ca15

Please sign in to comment.