feat(dashboard): finalise inventory kit creation (#7692)

* feat: finalize inventory kit creation

* fix: placeholder
This commit is contained in:
Frane Polić
2024-06-12 16:35:54 +02:00
committed by GitHub
parent 2f76fbc6ed
commit 3693f61dc3
7 changed files with 79 additions and 24 deletions
@@ -38,12 +38,12 @@ export const useComboboxData = <
}) => {
const { searchValue, onSearchValueChange, query } = useDebouncedSearch()
const queryIntialDataBy = defaultValueKey || "id"
const queryInitialDataBy = defaultValueKey || "id"
const { data: initialData } = useQuery({
queryKey: queryKey,
queryFn: async () => {
return queryFn({
[queryIntialDataBy]: defaultValue,
[queryInitialDataBy]: defaultValue,
limit: Array.isArray(defaultValue) ? defaultValue.length : 1,
} as TParams)
},