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 Dec 1, 2020
1 parent c84d56b commit 3af8195
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 3af8195

Please sign in to comment.