Skip to content

Commit

Permalink
Fix queryKey / searchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
anamarijapapic committed Apr 2, 2024
1 parent f1f5489 commit 1088606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordpress-plugin/admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const SyncInProgress: React.FC<{
}, [syncedItems]);

const [searchParams] = useSearchParams();
const errorsPage = Number(searchParams.get("epage")) || 1;
const errorsPage = Number(searchParams.get("page")) || 1;

const syncErrorMessagesQuery = useQuery({
queryKey: ["medusawp", "wp", "sync-progress-messages", errorsPage],
Expand Down

0 comments on commit 1088606

Please sign in to comment.