Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix switch even better

dominik-zeglen1a0bf169b73f
diff --git a/saleor/static/dashboard/js/components/misc.js b/saleor/static/dashboard/js/components/misc.js
index 91098a1c97..8b9a379cc9 100644
--- a/saleor/static/dashboard/js/components/misc.js
+++ b/saleor/static/dashboard/js/components/misc.js
@@ -28,10 +28,7 @@ export default $(document).ready((e) => {
}).then((r) => {
return r.json();
}).then((r) => {
- const label = r.is_published ?
- pgettext('Product field', 'Published') :
- pgettext('Product field', 'Draft');
- $(e.currentTarget).find('.label').text(label);
+ window.location.reload();
});
}
return 1;