pds-dev-kit-web-test 2.5.202 → 2.5.203

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.
@@ -107,13 +107,15 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
107
107
  (0, react_1.useImperativeHandle)(ref, function () {
108
108
  return {
109
109
  selectCB: function (blockId) {
110
- var _a;
111
110
  setSelectedBlockId(blockId);
112
- (_a = document
113
- .querySelector("div[data-grid-id=\"".concat(blockId.replace('CB_', ''), "\"]"))) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
114
- behavior: 'smooth',
115
- block: 'center'
116
- });
111
+ var block = document.querySelector("div[data-grid-id=\"".concat(blockId.replace('CB_', ''), "\"]"));
112
+ console.log(block, 'id ,', "".concat(blockId.replace('CB_', '')));
113
+ if (block) {
114
+ block.scrollIntoView({
115
+ behavior: 'smooth',
116
+ block: 'center'
117
+ });
118
+ }
117
119
  },
118
120
  selectCBInBulk: function (blockIds) {
119
121
  setBulkBlockIds(blockIds);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.202",
3
+ "version": "2.5.203",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",