@gem-sdk/pages 1.43.0-dev.103 → 1.43.0-dev.104
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.
|
@@ -525,7 +525,7 @@ const Toolbar = ()=>{
|
|
|
525
525
|
if (!value) {
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
|
-
const $component = await waitForElementToExist(`${currentComponentActive.current?.productId ? `[data-product-id="${currentComponentActive.current?.productId}"] ` : ''}[data-uid="${currentComponentActive.current?.componentUid}"]`, 500);
|
|
528
|
+
const $component = await waitForElementToExist(`${currentComponentActive.current?.productId ? `[data-product-id="${currentComponentActive.current?.productId}"] ` : currentComponentActive.current?.articleId ? `[data-article-id="${currentComponentActive.current?.articleId}"] ` : ''}[data-uid="${currentComponentActive.current?.componentUid}"]`, 500);
|
|
529
529
|
if ($component) {
|
|
530
530
|
const $parents = $component?.querySelectorAll('[data-toolbar-parent]');
|
|
531
531
|
if ($parents.length) {
|
|
@@ -521,7 +521,7 @@ const Toolbar = ()=>{
|
|
|
521
521
|
if (!value) {
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
524
|
-
const $component = await waitForElementToExist(`${currentComponentActive.current?.productId ? `[data-product-id="${currentComponentActive.current?.productId}"] ` : ''}[data-uid="${currentComponentActive.current?.componentUid}"]`, 500);
|
|
524
|
+
const $component = await waitForElementToExist(`${currentComponentActive.current?.productId ? `[data-product-id="${currentComponentActive.current?.productId}"] ` : currentComponentActive.current?.articleId ? `[data-article-id="${currentComponentActive.current?.articleId}"] ` : ''}[data-uid="${currentComponentActive.current?.componentUid}"]`, 500);
|
|
525
525
|
if ($component) {
|
|
526
526
|
const $parents = $component?.querySelectorAll('[data-toolbar-parent]');
|
|
527
527
|
if ($parents.length) {
|