Skip to content

Commit e36278c

Browse files
committed
ACP2E-657: [Magento Cloud] Changing from List to Grid view showing error
1 parent ed8a2ee commit e36278c

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/web/js/product/list

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/web/js/product/list/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ define([
149149
delete paramData[this.options.page];
150150
}
151151

152-
if (currentPage > 1 && (paramName === this.options.limit || paramName === this.options.mode)) {
152+
if (currentPage > 1 && paramName === this.options.limit) {
153153
newPage = Math.floor(this.getCurrentLimit() * (currentPage - 1) / paramValue) + 1;
154154

155155
if (newPage > 1) {

0 commit comments

Comments
 (0)