Skip to content

Commit

Permalink
Merge branch 'develop' into issue/9398/search_bar_loses_focus
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 authored Dec 24, 2024
2 parents b0a23ce + b84feda commit 3c5156a
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 40 deletions.
221 changes: 185 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@radix-ui/react-scroll-area": "^1.2.0",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.2",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-toast": "^1.2.4",
"@radix-ui/react-tooltip": "^1.1.6",
"@sentry/browser": "^8.45.1",
"@tanstack/react-query": "^5.62.8",
Expand Down
5 changes: 2 additions & 3 deletions src/components/Kanban/Board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ export function KanbanSection<T extends { id: string }>(
const sectionRef = useRef<HTMLDivElement>(null);
const defaultLimit = 14;
const { t } = useTranslation();

const options = section.fetchOptions(section.id);
const fetchPage = async ({ pageParam = 0 }) => {
const options = section.fetchOptions(section.id);
try {
const data = await callApi(options.route, {
...options.options,
Expand All @@ -118,7 +117,7 @@ export function KanbanSection<T extends { id: string }>(
isLoading,
refetch,
} = useInfiniteQuery({
queryKey: [section.id],
queryKey: ["board", section.id, options.options?.query],
queryFn: fetchPage,
getNextPageParam: (lastPage, pages) => {
if (!lastPage.next) return undefined;
Expand Down

0 comments on commit 3c5156a

Please sign in to comment.