diff --git a/src/lib/optionSet/useOptionSetQuery.ts b/src/lib/optionSet/useOptionSetQuery.ts index c7df4e24..a9af3a35 100644 --- a/src/lib/optionSet/useOptionSetQuery.ts +++ b/src/lib/optionSet/useOptionSetQuery.ts @@ -10,15 +10,15 @@ const CATEGORY_COMBOS_QUERY = { resource: 'optionSets', id: (variables: Record) => { if (!variables.id) { - throw new Error('Variable "id" required for `useOptionSetQuery`') + throw new Error( + 'Variable "id" required for `useOptionSetQuery`' + ) } return variables.id }, params: (variables: Record) => { - const fields = variables.fields?.length > 0 - ? variables.fields - : '*' + const fields = variables.fields?.length > 0 ? variables.fields : '*' return { ...variables, fields } }, @@ -29,8 +29,5 @@ export function useOptionSetQuery( // eslint-disable-next-line @typescript-eslint/no-explicit-any queryOptions: Record ) { - return useDataQuery( - CATEGORY_COMBOS_QUERY, - queryOptions - ) + return useDataQuery(CATEGORY_COMBOS_QUERY, queryOptions) }