Skip to content

Commit b284600

Browse files
MC-41575: Magento Catalog Frontend Action Synchronizer 400 causes JS unhandled error
1 parent 81672a2 commit b284600

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/web/mage/utils/misc.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,15 @@ define([
178178
}
179179
})
180180
.fail(function () {
181-
config.response.status(undefined);
182-
config.response.status(false);
183-
config.response.data({
184-
error: true,
185-
messages: 'Something went wrong.',
186-
t: t
187-
});
181+
if (config.response) {
182+
config.response.status(undefined);
183+
config.response.status(false);
184+
config.response.data({
185+
error: true,
186+
messages: 'Something went wrong.',
187+
t: t
188+
});
189+
}
188190
})
189191
.always(function () {
190192
if (!config.ignoreProcessEvents) {

0 commit comments

Comments
 (0)