Skip to content

Commit

Permalink
fix: parameter 'key' implicitly has an 'any' type.
Browse files Browse the repository at this point in the history
  • Loading branch information
AprilNEA committed Dec 12, 2023
1 parent ac5a464 commit cbe41a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function AdminChatPage() {

const { data, isLoading } = useSWR<IPagination<DashboardChatSession>>(
`/dashboard/chat/sessions?page=${pager.page}&limit=${pager.limit}`,
(key) => fetcher(key).then((res) => res.json()),
(key: string) => fetcher(key).then((res) => res.json()),
);

if (isLoading) {
Expand Down

0 comments on commit cbe41a2

Please sign in to comment.