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.
2 parents 61eb72a + df2e285 commit e5b9805Copy full SHA for e5b9805
skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js
@@ -206,8 +206,11 @@ var CatalinSeoHandler = {
206
History.Adapter.bind(window, 'popstate', function (event) {
207
if (event.type == 'popstate') {
208
var State = History.getState();
209
- $('catalog-listing').update(State.data.listing);
210
- $$('.block-layered-nav')[0].replace(State.data.layer);
+ // don't update blocks if data is undefined
+ if (typeof State.data.listing != 'undefined' && typeof State.data.layer != 'undefined') {
211
+ $('catalog-listing').update(State.data.listing);
212
+ $$('.block-layered-nav')[0].replace(State.data.layer);
213
+ }
214
self.ajaxListener();
215
self.toggleContent();
216
self.alignProductGridActions();
0 commit comments