ng-tailwind 6.4.2 → 6.4.3

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.
@@ -4165,7 +4165,7 @@ class NgtDatatableComponent {
4165
4165
  return this.apply(this.ngtPagination.getCurrentPage());
4166
4166
  }
4167
4167
  async refresh(stayInPage = NgtDatatableParam.RESET_PAGE, loader = NgtDatatableParam.ENABLE_LOADER) {
4168
- return this.apply(stayInPage ? this.ngtPagination.getCurrentPage() : 1, false, loader).then(() => !this.data?.length ? this.apply(1, false) : null);
4168
+ return this.apply(stayInPage ? this.ngtPagination.getCurrentPage() : 1, false, loader).then(() => !this.data?.length && stayInPage ? this.apply(1, false) : null);
4169
4169
  }
4170
4170
  getData() {
4171
4171
  return this.data;