diff --git a/tdrive/backend/node/src/services/documents/utils.ts b/tdrive/backend/node/src/services/documents/utils.ts index f2173cf59..95649c761 100644 --- a/tdrive/backend/node/src/services/documents/utils.ts +++ b/tdrive/backend/node/src/services/documents/utils.ts @@ -374,7 +374,7 @@ export const addDriveItemToArchive = async ( ); } nextPage = items.nextPage?.page_token; - } while (nextPage > ""); + } while (nextPage); return; } };