diff --git a/package-lock.json b/package-lock.json index 0edada6..4564cac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "vk-io-pages", - "version": "1.6.2", + "version": "1.6.3", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.6.2", + "version": "1.6.3", "license": "MIT", "dependencies": { "vk-io": "^4.1.2" diff --git a/package.json b/package.json index 93236f4..dd57bad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vk-io-pages", - "version": "1.6.2", + "version": "1.6.3", "description": "Модуль vk-io для создания динамических страниц", "scripts": { "tsc": "tsc && node --experimental-modules --es-module-specifier-resolution=node ./scripts/removeEmptyFiles.mjs", diff --git a/src/PagesBuilder.ts b/src/PagesBuilder.ts index 96c9a7a..147f866 100644 --- a/src/PagesBuilder.ts +++ b/src/PagesBuilder.ts @@ -440,7 +440,7 @@ export class PagesBuilder extends Event.EventEmitter { return; } - this.setPage(); + this.setPage(1); break; case "back": @@ -461,7 +461,7 @@ export class PagesBuilder extends Event.EventEmitter { case "next": if (this.currentPage === this.pages.length) { if (this.infinityLoop) { - this.setPage(); + this.setPage(1); } return; @@ -473,7 +473,7 @@ export class PagesBuilder extends Event.EventEmitter { case "last": if (this.currentPage === this.pages.length) { if (this.infinityLoop) { - this.setPage(); + this.setPage(1); } return;