Skip to content

Commit 7cf05de

Browse files
author
Mohan Ahuja
committed
ACP2E-711: "Invalid Form Key. Please refresh the page." error occurs when changing the product limit in categories
- Adding condition to work even if the pagination setting is not defined.
1 parent 80060a9 commit 7cf05de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageCache/view/frontend/web/js/form-key-provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ define(function () {
8282
function initFormKey() {
8383
formKey = getFormKeyCookie();
8484

85-
if (settings.isPaginationCacheEnabled && !formKey) {
85+
if (settings && settings.isPaginationCacheEnabled && !formKey) {
8686
formKey = getFormKeyFromUI();
8787
setFormKeyCookie(formKey);
8888
}

0 commit comments

Comments
 (0)