ecomlab-components-next 0.1.267 → 0.1.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,7 +145,9 @@ var ArticlesBlockV2 = function ArticlesBlockV2(_ref) {
|
|
|
145
145
|
className: 'articles-v2__grid reveal'
|
|
146
146
|
}, (_getArticleBoxData = getArticleBoxData(articles, locale)) === null || _getArticleBoxData === void 0 ? void 0 : _getArticleBoxData.map(function (articleData, index) {
|
|
147
147
|
var _articleData$annotati;
|
|
148
|
-
return /*#__PURE__*/_react["default"].createElement(_ShortTileArticleBox["default"], _extends({
|
|
148
|
+
return /*#__PURE__*/_react["default"].createElement(_ShortTileArticleBox["default"], _extends({
|
|
149
|
+
key: articleData.id
|
|
150
|
+
}, articleData, {
|
|
149
151
|
cpu: articleData === null || articleData === void 0 || (_articleData$annotati = articleData.annotation) === null || _articleData$annotati === void 0 ? void 0 : _articleData$annotati[1]
|
|
150
152
|
}));
|
|
151
153
|
}).splice(0, 4))));
|
|
@@ -34,7 +34,7 @@ var HeaderV2 = function HeaderV2(_ref) {
|
|
|
34
34
|
linkMain = _ref$linkMain === void 0 ? 'https://lk.ecomru.ru' : _ref$linkMain,
|
|
35
35
|
_ref$badgeText = _ref.badgeText,
|
|
36
36
|
badgeText = _ref$badgeText === void 0 ? "Экосистема для селлеров и брендов" : _ref$badgeText;
|
|
37
|
-
var currentUrl = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.search;
|
|
37
|
+
var currentUrl = typeof window !== 'undefined' ? (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.search : '';
|
|
38
38
|
return /*#__PURE__*/_react["default"].createElement("header", {
|
|
39
39
|
className: "header-v2"
|
|
40
40
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|