diff --git a/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue b/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue index ab8182ba..df509dc4 100644 --- a/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue +++ b/resources/assets/js/components/catalogue-manager/products/ProductDuplicate.vue @@ -27,9 +27,13 @@ }, routes() { return this.product.routes ? this.product.routes.data : null; - } + }, }, methods: { + sanitize: _.debounce(function (index) { + const slug = this.slugs[index].new; + this.slugs[index].new = _.kebabCase(slug); + }, 1000), fetch(showFetch) { this.skus = []; this.slugs = []; @@ -107,11 +111,10 @@ -