Skip to content

Commit

Permalink
fix: call plugin within composable function
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jun 24, 2024
1 parent eefb88c commit f3d7d6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions composables/use-get-search-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { useQuery } from "@tanstack/vue-query";

import type { SearchFilters } from "@/types/api";

const { $api } = useNuxtApp();

export function useGetSearchResults(params: MaybeRef<SearchFilters>) {
const { $api } = useNuxtApp();
return useQuery({
queryKey: ["worklist", params] as const,
async queryFn({ queryKey }) {
Expand Down

0 comments on commit f3d7d6e

Please sign in to comment.