Merge #20201 - Fix #20141 - Fix data is undefined

Pull-request: #20201
Fixes: #20141
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2026-03-05 09:57:50 +01:00
commit 933e5be2ef
No known key found for this signature in database
GPG Key ID: 70684F4717D49A31

View File

@ -1152,7 +1152,7 @@ var ConsoleDebug = {
initialize: function () {
// Try to get debug info after every AJAX request
$(document).on('ajaxSuccess', function (event, xhr, settings, data) {
if (data.debug) {
if (typeof data !== 'undefined' && data.debug) {
ConsoleDebug.showLog(data.debug, settings.url);
}
});