Skip to content
Snippets Groups Projects
Commit 1d378ff8 authored by David Rothstein's avatar David Rothstein
Browse files

Issue #1901476 by caiosba | mstef: Fixed Uncaught TypeError: Cannot read...

Issue #1901476 by caiosba | mstef: Fixed Uncaught TypeError: Cannot read property 'command' of undefined in ajax.js.
parent 054c8abf
No related branches found
No related tags found
2 merge requests!7330Issue #3306390 by poker10, catch, Fabianx, pwolanin, rvtraveller: [D7]...,!1564SA-CORE-2021-001 by larowlan, stephenacrossri, siliconmeadow, mcdruid, xjm,...
......@@ -396,7 +396,7 @@ Drupal.ajax.prototype.success = function (response, status) {
Drupal.freezeHeight();
for (var i in response) {
if (response[i]['command'] && this.commands[response[i]['command']]) {
if (response.hasOwnProperty(i) && response[i]['command'] && this.commands[response[i]['command']]) {
this.commands[response[i]['command']](this, response[i], status);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment