Skip to content

Commit 1c93fa6

Browse files
committed
MC-19096: redundant check for directory-data inside leads to second ajax request
1 parent b546d6c commit 1c93fa6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ define([
202202
privateContent = $.cookieStorage.get(privateContentVersion),
203203
localPrivateContent = $.localStorage.get(privateContentVersion),
204204
needVersion = 'need_version',
205-
expiredSectionNames = this.getExpiredSectionNames(),
206-
isLoading = false;
205+
expiredSectionNames = this.getExpiredSectionNames();
207206

208207
if (privateContent &&
209208
!$.cookieStorage.isSet(privateContentVersion) &&
@@ -212,7 +211,6 @@ define([
212211
$.cookieStorage.set(privateContentVersion, needVersion);
213212
$.localStorage.set(privateContentVersion, needVersion);
214213
this.reload([], false);
215-
isLoading = true;
216214
} else if (localPrivateContent !== privateContent) {
217215
if (!$.cookieStorage.isSet(privateContentVersion)) {
218216
privateContent = needVersion;
@@ -223,7 +221,6 @@ define([
223221
buffer.notify(sectionName, sectionData);
224222
});
225223
this.reload([], false);
226-
isLoading = true;
227224
} else if (expiredSectionNames.length > 0) {
228225
_.each(dataProvider.getFromStorage(storage.keys()), function (sectionData, sectionName) {
229226
buffer.notify(sectionName, sectionData);

0 commit comments

Comments
 (0)