chore: prettier format pass on branch files
Auto-format all files modified during the documents-hub-split feature branch that were not yet aligned with the project's Prettier config (single quotes, semicolons, trailing commas). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,8 +41,7 @@ export function useEntityOptions({
|
||||
|
||||
const { data, isLoading } = useQuery<unknown[]>({
|
||||
queryKey: ['entityOptions', endpoint, debouncedSearch],
|
||||
queryFn: () =>
|
||||
apiFetch<{ data: unknown[] }>(`${endpoint}${queryParams}`).then((r) => r.data),
|
||||
queryFn: () => apiFetch<{ data: unknown[] }>(`${endpoint}${queryParams}`).then((r) => r.data),
|
||||
enabled,
|
||||
});
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ export function useSavedViews(entityType: string) {
|
||||
const { data: views = [] } = useQuery<SavedView[]>({
|
||||
queryKey,
|
||||
queryFn: () =>
|
||||
apiFetch<{ data: SavedView[] }>(
|
||||
`/api/v1/saved-views?entityType=${entityType}`,
|
||||
).then((r) => r.data),
|
||||
apiFetch<{ data: SavedView[] }>(`/api/v1/saved-views?entityType=${entityType}`).then(
|
||||
(r) => r.data,
|
||||
),
|
||||
});
|
||||
|
||||
const saveMutation = useMutation({
|
||||
@@ -34,8 +34,7 @@ export function useSavedViews(entityType: string) {
|
||||
});
|
||||
|
||||
const deleteMutation = useMutation({
|
||||
mutationFn: (viewId: string) =>
|
||||
apiFetch(`/api/v1/saved-views/${viewId}`, { method: 'DELETE' }),
|
||||
mutationFn: (viewId: string) => apiFetch(`/api/v1/saved-views/${viewId}`, { method: 'DELETE' }),
|
||||
onSuccess: () => queryClient.invalidateQueries({ queryKey }),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user