Web: Files: fixed loadMoreForms

This commit is contained in:
Nikita Gopienko 2022-08-29 11:52:37 +03:00
parent 448025050f
commit eea60dc7ec

View File

@ -52,7 +52,7 @@ class OformsStore {
loadMoreForms = async () => {
if (!this.hasMoreForms || this.oformsIsLoading) return;
console.log("loadMoreForms");
// console.log("loadMoreForms");
this.setOformsIsLoading(true);
@ -61,7 +61,7 @@ class OformsStore {
newOformsFilter.page += 1;
this.setOformsFilter(newOformsFilter);
const oformData = await this.getOforms(newOformsFilter);
const oformData = await this.authStore.getOforms(newOformsFilter);
const newForms = oformData?.data?.data ?? [];
runInAction(() => {