Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Nov 9, 2022
1 parent e075b80 commit 72c61bb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/components/advanced-table/advanced-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,8 @@ export function AdvancedTable<
// for some reason `to` is set incorrectly on the last page in
// server-side pagination, so we need to build the string differently
// in this case.

// In a case where "from" is larger than the row count, display no message.
// This happens when the last page incorrectly has a nextToken.
if (from > loadedRows) {
return '';
}

return trans.__('%1–%2 of %3', from, loadedRows, loadedRows);
} else {
if (from > to) {
return '';
}

return trans.__(
'%1–%2 of %3',
from,
Expand All @@ -214,10 +203,6 @@ export function AdvancedTable<
);
}
} else {
if (from > to) {
return '';
}

return trans.__('%1–%2 of %3', from, to, count);
}
},
Expand Down

0 comments on commit 72c61bb

Please sign in to comment.