Skip to content

Commit

Permalink
fix(cloud-storage): fetch more cloud files fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheerego7 committed Jun 7, 2022
1 parent 4663833 commit b7d9a5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
"always",
[
"ci",
"cloud-storage",
"desktop",
"deployment",
"electron",
Expand Down
2 changes: 1 addition & 1 deletion desktop/renderer-app/src/pages/CloudStoragePage/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class CloudStorageStore extends CloudStorageStoreBase {

this.isFetchingFiles = false;

this.hasMoreFile = cloudFiles.length === 0;
this.hasMoreFile = cloudFiles.length > 0;

for (const cloudFile of cloudFiles) {
const file = this.filesMap.get(cloudFile.fileUUID);
Expand Down
3 changes: 1 addition & 2 deletions web/flat-web/src/pages/CloudStoragePage/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ export class CloudStorageStore extends CloudStorageStoreBase {
if (this.isFetchingFiles) {
return;
}

const cloudStorageTotalPagesFilesCount =
this.cloudStorageDataPagination * this.cloudStorageSinglePageFiles;

Expand All @@ -305,7 +304,7 @@ export class CloudStorageStore extends CloudStorageStoreBase {

this.isFetchingFiles = false;

this.hasMoreFile = cloudFiles.length === 0;
this.hasMoreFile = cloudFiles.length > 0;

for (const cloudFile of cloudFiles) {
const file = this.filesMap.get(cloudFile.fileUUID);
Expand Down

0 comments on commit b7d9a5a

Please sign in to comment.