.loadPage() getting floats despite passing whole numbers as its parameters: "currentPage method cannot be set to the value 1.75"

@yisrael-wix Moved it outside but it didn’t do anything. However, I noticed that the number it reports is always y = x - 0.25x. So, if I hardcode 4, it says it got 3.25; 5 => 4; 6 => 4.75; etc.

For the float number issue just go to this link: https://briapril30.wixsite.com/website-3/shop
It is hardcoded with loadPage(2)

Like I said before, it works fine when the .loadPage() is assigned to a separate button so I thought it might have to do with my other functions working with the dataset, but when I try to finish all other functions before changing the page like so:

  $w('#productsList').onReady(function () {
    Promise.all([updateFilterSelectedN(), reloadProductsBasedOnFilter(), sortProducts()])
      .then(() => setPage())
      .catch((err) => console.log(err))
  })

I get this error:

Uncaught (in promise) r {code: "NO_SUCH_PAGE", message: "Page 4 does not exist", name: "DatasetError", stack: "DatasetError: Page 4 does not exist↵    at e.expor…services/dbsm-viewer-app/1.2624.0/app.js:6:103775", Symbol(error-boundary-scope): "userCodeZone", …}

For this error go to this link as long as p != 1 in the query ?p=, it will throw the uncaught promise error. so p=2, p=3, etc.
https://briapril30.wixsite.com/website-2/shop?p=2

Both of these are duplicates of this site (in the process of switching from lazy scroll to pagination, published site still uses lazy scroll) so if somehow the site itself is corrupted somehow, I need this site to be fixed.

Thanks