From ba18467d3315fb92e65128180d4bc938e6cb8f5d Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Mon, 15 Apr 2024 22:13:58 +0200 Subject: [PATCH] MatrixProduct remove left over debug output --- classes/Modules/MatrixProduct/www/js/Variant.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Modules/MatrixProduct/www/js/Variant.vue b/classes/Modules/MatrixProduct/www/js/Variant.vue index b44aeb36..0d5293bc 100644 --- a/classes/Modules/MatrixProduct/www/js/Variant.vue +++ b/classes/Modules/MatrixProduct/www/js/Variant.vue @@ -11,6 +11,7 @@ import Dialog from "primevue/dialog"; import Dropdown from "primevue/dropdown"; import {onMounted, ref} from "vue"; import axios from "axios"; +import {AlertErrorHandler} from "@res/js/ajaxErrorHandler"; const props = defineProps({ articleId: String, @@ -28,7 +29,7 @@ onMounted(async () => { async function save() { await axios.post('index.php?module=matrixprodukt&action=artikel&cmd=variantsave', {...props, ...model.value}) - .catch(error => alert(error.response.data)) + .catch(AlertErrorHandler) .then(() => {emit('save')}); }