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 ad0ba79 commit 24dfb62Copy full SHA for 24dfb62
app/code/Magento/Customer/view/frontend/web/js/customer-data.js
@@ -381,7 +381,7 @@ define([
381
if (settings.type.match(/post|put|delete/i)) {
382
sections = sectionConfig.getAffectedSections(settings.url);
383
384
- if (sections) {
+ if (sections && sections.length) {
385
customerData.invalidate(sections);
386
redirects = ['redirect', 'backUrl'];
387
0 commit comments