diff --git a/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js b/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js index 12cb1f5a81..8990db4e59 100644 --- a/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js +++ b/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js @@ -28,7 +28,7 @@ if (coreshop.resource === undefined) { var item = e.detail.item; var type = e.detail.type; - if (type === 'coreshop.messenger' && item.attributes.function === 'list') { + if (type === 'coreshop.coreshop' && item.id === 'coreshop_messenger' && item.attributes.function === 'list') { me.openList(); } }); @@ -43,4 +43,4 @@ if (coreshop.resource === undefined) { }, }); new coreshop.messenger.resource(); -} \ No newline at end of file +}