ecomlab-components-next 0.1.166 → 0.1.167

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.
@@ -214,13 +214,16 @@ var SelectedBlocks = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
214
214
  };
215
215
  (0, _react.useEffect)(function () {
216
216
  var links = content === null || content === void 0 ? void 0 : content.filter(function (el) {
217
- return el.block_type === 'title';
217
+ return el.block_type === 'title' || el.block_type === 'question';
218
218
  }).map(function (el) {
219
219
  var _el$content;
220
- return {
221
- title: el === null || el === void 0 || (_el$content = el.content) === null || _el$content === void 0 || (_el$content = _el$content[0]) === null || _el$content === void 0 ? void 0 : _el$content.value,
222
- id: el.block_id
223
- };
220
+ if (el !== null && el !== void 0 && (_el$content = el.content) !== null && _el$content !== void 0 && (_el$content = _el$content[0]) !== null && _el$content !== void 0 && _el$content.value) {
221
+ var _el$content2;
222
+ return {
223
+ title: el === null || el === void 0 || (_el$content2 = el.content) === null || _el$content2 === void 0 || (_el$content2 = _el$content2[0]) === null || _el$content2 === void 0 ? void 0 : _el$content2.value,
224
+ id: el.block_id
225
+ };
226
+ }
224
227
  });
225
228
  if (setListLinks) {
226
229
  setListLinks(links);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.166",
3
+ "version": "0.1.167",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [