Skip to content

Commit

Permalink
Fix data pagination for requests and logs (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonnav committed Jun 12, 2023
1 parent 2da9074 commit a19d0e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions estela-web/src/pages/JobDataPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export function JobRequestsData({ projectId, spiderId, jobId }: JobsDataProps) {

const onRequestsPageChange = async (page: number): Promise<void> => {
setLoaded(false);
await getData("requests", page, projectId, spiderId, jobId, page).then((response) => {
await getData("requests", page, projectId, spiderId, jobId).then((response) => {
let data: Dictionary[] = [];
if (response.results?.length) {
const safe_data: unknown[] = response.results ?? [];
Expand Down Expand Up @@ -532,7 +532,7 @@ export function JobLogsData({ projectId, spiderId, jobId }: JobsDataProps) {

const onLogsPageChange = async (page: number): Promise<void> => {
setLoaded(false);
await getData("logs", page, projectId, spiderId, jobId, page).then((response) => {
await getData("logs", page, projectId, spiderId, jobId).then((response) => {
let data: Dictionary[] = [];
if (response.results?.length) {
const safe_data: unknown[] = response.results ?? [];
Expand Down

0 comments on commit a19d0e7

Please sign in to comment.