Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix bug if script fired in styleguide view
dominik-zeglen3024b90b9fba
diff --git a/saleor/static/dashboard/js/components/messages.js b/saleor/static/dashboard/js/components/messages.jsindex 6b9355bfe6..c727760ec2 100644--- a/saleor/static/dashboard/js/components/messages.js+++ b/saleor/static/dashboard/js/components/messages.js@@ -3,6 +3,8 @@ const data = dataElement.data('messages');// ------Object.keys(data).forEach((key) => {- Materialize.toast(data[key], 5000);-});+if(data) {+ Object.keys(data).forEach((key) => {+ Materialize.toast(data[key], 5000);+ });+}