diff --git a/hyperglass/ui/hooks/use-form-state.ts b/hyperglass/ui/hooks/use-form-state.ts index 4af3cd2..b0197bd 100644 --- a/hyperglass/ui/hooks/use-form-state.ts +++ b/hyperglass/ui/hooks/use-form-state.ts @@ -1,14 +1,14 @@ -import { useMemo } from 'react'; -import create from 'zustand'; import intersectionWith from 'lodash/intersectionWith'; import plur from 'plur'; +import { useMemo } from 'react'; import isEqual from 'react-fast-compare'; +import create from 'zustand'; import { all, andJoin, dedupObjectArray, withDev } from '~/util'; +import type { UseFormClearErrors, UseFormSetError } from 'react-hook-form'; +import type { MultiValue, SingleValue } from 'react-select'; import type { StateCreator } from 'zustand'; -import type { UseFormSetError, UseFormClearErrors } from 'react-hook-form'; -import type { SingleValue, MultiValue } from 'react-select'; -import type { SingleOption, Directive, FormData, Text, Device } from '~/types'; +import type { Device, Directive, FormData, SingleOption, Text } from '~/types'; import type { UseDeviceReturn } from './use-device'; type FormStatus = 'form' | 'results'; @@ -61,7 +61,10 @@ interface FormStateType { setSelection< Opt extends SingleOption, K extends keyof FormSelections = keyof FormSelections, - >(field: K, value: FormSelections[K]): void; + >( + field: K, + value: FormSelections[K], + ): void; setTarget(update: Partial): void; getDirective(): Directive | null; reset(): void; diff --git a/hyperglass/ui/hooks/use-lg-query.ts b/hyperglass/ui/hooks/use-lg-query.ts index cc5321a..d03cf88 100644 --- a/hyperglass/ui/hooks/use-lg-query.ts +++ b/hyperglass/ui/hooks/use-lg-query.ts @@ -55,9 +55,7 @@ export function useLGQuery( ); try { const data = await res.json(); - console.dir(data, { depth: null }); return data; - // return await res.json(); } catch (err) { throw new Error(res.statusText); }