ng-tailwind 5.3.12 → 5.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4138,7 +4138,7 @@ class NgtDatatableComponent {
4138
4138
  return this.apply(this.ngtPagination.getCurrentPage());
4139
4139
  }
4140
4140
  async refresh(stayInPage = NgtDatatableParam.RESET_PAGE, loader = NgtDatatableParam.ENABLE_LOADER) {
4141
- return this.apply(stayInPage ? this.ngtPagination.getCurrentPage() : 1, false, loader).then(() => !this.data?.length ? this.apply(1, false) : null);
4141
+ return this.apply(stayInPage ? this.ngtPagination.getCurrentPage() : 1, false, loader).then(() => !this.data?.length && stayInPage ? this.apply(1, false) : null);
4142
4142
  }
4143
4143
  getData() {
4144
4144
  return this.data;