@gem-sdk/components 2.0.6 → 2.0.7

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.
@@ -208,7 +208,7 @@ const ProductList = ({ children, className, setting, styles, builderProps })=>{
208
208
  const { builderData } = builderProps ?? {};
209
209
  const targetUid = builderData?.childrens?.[0];
210
210
  if (!targetUid) return;
211
- const container = document.querySelector(mode === 'edit' ? `[data-uid=${targetUid}]` : `[data-id=${targetUid}] div`);
211
+ const container = document.querySelector(`[data-id=${targetUid}] div`);
212
212
  if (!container) return;
213
213
  setRowPerCol(container.childElementCount || 1);
214
214
  }, mode === 'edit' ? 0 : 500);
@@ -204,7 +204,7 @@ const ProductList = ({ children, className, setting, styles, builderProps })=>{
204
204
  const { builderData } = builderProps ?? {};
205
205
  const targetUid = builderData?.childrens?.[0];
206
206
  if (!targetUid) return;
207
- const container = document.querySelector(mode === 'edit' ? `[data-uid=${targetUid}]` : `[data-id=${targetUid}] div`);
207
+ const container = document.querySelector(`[data-id=${targetUid}] div`);
208
208
  if (!container) return;
209
209
  setRowPerCol(container.childElementCount || 1);
210
210
  }, mode === 'edit' ? 0 : 500);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",