We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81672a2 commit b284600Copy full SHA for b284600
lib/web/mage/utils/misc.js
@@ -178,13 +178,15 @@ define([
178
}
179
})
180
.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
- });
+ if (config.response) {
+ config.response.status(undefined);
+ config.response.status(false);
+ config.response.data({
+ error: true,
+ messages: 'Something went wrong.',
+ t: t
188
+ });
189
+ }
190
191
.always(function () {
192
if (!config.ignoreProcessEvents) {
0 commit comments