Skip to content

Commit

Permalink
chore: update field filters in edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Oct 22, 2024
1 parent 895bd8d commit 6a7aa24
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/categoryOptionGroups/Edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import React from 'react'
import { useQuery } from 'react-query'
import { useParams } from 'react-router-dom'
import { DefaultEditFormContents, FormBase } from '../../components'
import { DEFAULT_FIELD_FILTERS, SECTIONS_MAP, useOnSubmitEdit } from '../../lib'
import {
ATTRIBUTE_VALUES_FIELD_FILTERS,
DEFAULT_FIELD_FILTERS,
SECTIONS_MAP,
useOnSubmitEdit,
} from '../../lib'
import { useBoundResourceQueryFn } from '../../lib/query/useBoundQueryFn'
import { PickWithFieldFilters } from '../../types/generated'
import { CategoryOptionGroup } from '../../types/models'
Expand All @@ -11,14 +16,14 @@ import { validate } from './form/categoryOptionGroupSchema'

const fieldFilters = [
...DEFAULT_FIELD_FILTERS,
...ATTRIBUTE_VALUES_FIELD_FILTERS,
'name',
'shortName',
'code',
'description',
'categoryOptions[id,displayName]',
'dataDimension',
'dataDimensionType',
'attributeValues[value,attribute[id]]',
] as const

export type CategoryOptionGroupFormValues = PickWithFieldFilters<
Expand Down

0 comments on commit 6a7aa24

Please sign in to comment.