Skip to content

Commit

Permalink
refactor: address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed May 26, 2021
1 parent d5669a1 commit 5b8eb70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/services/gridState.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ export class GridStateService {
* @return current pagination state
*/
getCurrentPagination(): CurrentPagination | null {
if (this._gridOptions.enablePagination) {
if (this._gridOptions?.backendServiceApi) {
if (this._gridOptions?.enablePagination) {
if (this._gridOptions.backendServiceApi) {
const backendService = this._gridOptions.backendServiceApi.service;
if (backendService?.getCurrentPagination) {
return backendService.getCurrentPagination();
Expand Down

0 comments on commit 5b8eb70

Please sign in to comment.