Skip to content

Commit

Permalink
refactor: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Aug 28, 2024
1 parent 914acf0 commit 0315442
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/pages/categoryOptionCombos/Edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ export type CategoryOptionComboFormValues = PickWithFieldFilters<

const section = SECTIONS_MAP.categoryOptionCombo

const query = {
resource: 'categoryOptionCombos',
id: modelId,

Check failure on line 29 in src/pages/categoryOptionCombos/Edit.tsx

View workflow job for this annotation

GitHub Actions / build

Cannot find name 'modelId'.
params: {
fields: fieldFilters.concat(),
},
}

export const Component = () => {
const queryFn = useBoundResourceQueryFn()
const modelId = useParams().id as string
const query = {
resource: 'categoryOptionCombos',
id: modelId,
params: {
fields: fieldFilters.concat(),
},
}

const categoryOptionCombo = useQuery({
queryKey: [query],
queryFn: queryFn<CategoryOptionComboFormValues>,
Expand Down

0 comments on commit 0315442

Please sign in to comment.