Skip to content

Commit

Permalink
fix: Null check pagination variable (#4617)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Behar <simbeh7@gmail.com>
  • Loading branch information
simster7 authored and alexec committed Dec 3, 2020
1 parent ace0ee1 commit 61b6704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class ArchivedWorkflowList extends BasePage<RouteComponentProps<any>, Sta
if (this.state.pagination.offset) {
params.append('offset', this.state.pagination.offset);
}
if (this.state.pagination.limit !== defaultPaginationLimit) {
if (this.state.pagination.limit && this.state.pagination.limit !== defaultPaginationLimit) {
params.append('limit', this.state.pagination.limit.toString());
}
return params;
Expand Down

0 comments on commit 61b6704

Please sign in to comment.