Skip to content

Commit 4a3dc86

Browse files
authored
feat: apply api cache to project dropdown in collection create drawer (#3056)
1 parent f000cbc commit 4a3dc86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/modules/admin/modules/collections/components/lf-insights-projects-list-dropdown.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const queryKey = computed(() => [
118118
searchValue.value,
119119
]);
120120
121-
const projectGroupsQueryFn = INSIGHTS_PROJECTS_SERVICE.query(() => ({
121+
const queryFn = INSIGHTS_PROJECTS_SERVICE.query(() => ({
122122
limit: 20,
123123
offset: 0,
124124
filter: searchValue.value
@@ -140,7 +140,7 @@ const {
140140
error,
141141
} = useInfiniteQuery<Pagination<InsightsProjectModel>, Error>({
142142
queryKey,
143-
queryFn: projectGroupsQueryFn,
143+
queryFn,
144144
getNextPageParam: (lastPage) => {
145145
const nextPage = lastPage.offset + lastPage.limit;
146146
const totalRows = lastPage.total!;

0 commit comments

Comments
 (0)