Skip to content

Commit a06bdea

Browse files
committed
Invalidate and refresh customer data sections on HTTP DELETE requests
1 parent ab23fb9 commit a06bdea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ define([
344344
var sections,
345345
redirects;
346346

347-
if (settings.type.match(/post|put/i)) {
347+
if (settings.type.match(/post|put|delete/i)) {
348348
sections = sectionConfig.getAffectedSections(settings.url);
349349

350350
if (sections) {
@@ -365,7 +365,7 @@ define([
365365
$(document).on('submit', function (event) {
366366
var sections;
367367

368-
if (event.target.method.match(/post|put/i)) {
368+
if (event.target.method.match(/post|put|delete/i)) {
369369
sections = sectionConfig.getAffectedSections(event.target.action);
370370

371371
if (sections) {

0 commit comments

Comments
 (0)