Skip to content

Commit de0acec

Browse files
committedFeb 13, 2025
Merge remote-tracking branch '39509/bug/AC-11717-customer-data-console-error-fix' into octcommpr
2 parents e8388d6 + 69ccf82 commit de0acec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎app/code/Magento/Customer/view/frontend/web/js/customer-data.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Copyright © Magento, Inc. All rights reserved.
3-
* See COPYING.txt for license details.
2+
* Copyright 2015 Adobe
3+
* All Rights Reserved.
44
*/
55

66
/**
@@ -95,7 +95,10 @@ define([
9595
parameters['force_new_section_timestamp'] = forceNewSectionTimestamp;
9696

9797
return $.getJSON(options.sectionLoadUrl, parameters).fail(function (jqXHR) {
98-
throw new Error(jqXHR);
98+
// don't throw error if the request is cancelled or blocked
99+
if (jqXHR.status !== 0) {
100+
throw new Error(jqXHR);
101+
}
99102
});
100103
}
101104
};

0 commit comments

Comments
 (0)
Failed to load comments.