diff --git a/app/components/TypeEditPieceRequirementsSection.vue b/app/components/TypeEditPieceRequirementsSection.vue index 9d530f0..1ba9486 100644 --- a/app/components/TypeEditPieceRequirementsSection.vue +++ b/app/components/TypeEditPieceRequirementsSection.vue @@ -12,7 +12,7 @@ diff --git a/app/components/common/SearchSelect.vue b/app/components/common/SearchSelect.vue index c56de77..0299d20 100644 --- a/app/components/common/SearchSelect.vue +++ b/app/components/common/SearchSelect.vue @@ -184,8 +184,7 @@ watch( watch( baseOptions, - (newOptions) => { - console.log('[SearchSelect] baseOptions changed, count:', newOptions.length, 'modelValue:', props.modelValue, 'selectedOption:', selectedOption.value?.id) + (_newOptions) => { if (!openDropdown.value && selectedOption.value) { searchTerm.value = resolveLabel(selectedOption.value) } diff --git a/app/pages/type/[id].vue b/app/pages/type/[id].vue index cdaf9b5..a5aa53a 100644 --- a/app/pages/type/[id].vue +++ b/app/pages/type/[id].vue @@ -185,25 +185,16 @@ const toDisplayCount = (value, fallback) => { onMounted(async () => { try { const typeId = route.params.id - console.log('=== TYPE DETAIL PAGE LOADING ===') - console.log('Loading type with ID:', typeId) - console.log('Full route params:', route.params) - if (!typeId) { - console.error('No type ID provided in route') showError('Aucun identifiant de type fourni') loading.value = false return } const result = await getMachineTypeById(typeId) - console.log('API Result:', result) - if (result.success) { type.value = result.data - console.log('Type loaded successfully:', type.value) } else { - console.error('Failed to load type:', result.error) showError('Type non trouvé') } } catch (error) { @@ -211,7 +202,6 @@ onMounted(async () => { showError('Erreur lors du chargement') } finally { loading.value = false - console.log('Loading finished, loading.value:', loading.value) } }) diff --git a/app/pages/type/edit/[id].vue b/app/pages/type/edit/[id].vue index df14c07..c01807e 100644 --- a/app/pages/type/edit/[id].vue +++ b/app/pages/type/edit/[id].vue @@ -206,15 +206,9 @@ const saveChanges = async () => { onMounted(async () => { try { const typeId = route.params.id - console.log('=== EDIT TYPE PAGE LOADING ===') - console.log('Loading type with ID:', typeId) - const result = await getMachineTypeById(typeId, true) - console.log('API Result:', result) - if (result.success) { type.value = result.data - console.log('Type loaded successfully:', type.value) // Initialiser les données éditées editedType.value = { @@ -236,7 +230,6 @@ onMounted(async () => { showError('Erreur lors du chargement') } finally { loading.value = false - console.log('Loading finished, loading.value:', loading.value) } })