From 868ce596ba7933927c733eeaabbc1b4cbf1a244f Mon Sep 17 00:00:00 2001 From: Francisco Gaona Date: Sun, 28 Dec 2025 07:20:58 +0100 Subject: [PATCH] WIP - remove console logs --- frontend/composables/useFieldViews.ts | 2 -- .../pages/[objectName]/[[recordId]]/[[view]].vue | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/frontend/composables/useFieldViews.ts b/frontend/composables/useFieldViews.ts index 97b1c93..ee2ebb8 100644 --- a/frontend/composables/useFieldViews.ts +++ b/frontend/composables/useFieldViews.ts @@ -213,8 +213,6 @@ export const useViewState = ( const response = await api.get(`${apiEndpoint}/${id}`) // Handle response - data might be directly in response or in response.data currentRecord.value = response.data || response - console.log('[fetchRecord] Fetched record:', JSON.stringify(currentRecord.value, null, 2)) - console.log('[fetchRecord] Record has id?', currentRecord.value?.id) } catch (e: any) { error.value = e.message // Only log unexpected errors (not authorization failures) diff --git a/frontend/pages/[objectName]/[[recordId]]/[[view]].vue b/frontend/pages/[objectName]/[[recordId]]/[[view]].vue index 7b5b225..ed75d24 100644 --- a/frontend/pages/[objectName]/[[recordId]]/[[view]].vue +++ b/frontend/pages/[objectName]/[[recordId]]/[[view]].vue @@ -120,7 +120,6 @@ const detailConfig = computed(() => { const editConfig = computed(() => { if (!objectDefinition.value) return null const config = buildEditViewConfig(objectDefinition.value) - console.log('[PAGE] editConfig computed:', config ? 'EXISTS' : 'NULL') return config }) @@ -129,22 +128,9 @@ const editConfig = computed(() => { const canCreate = computed(() => { const publicCreate = objectAccess.value?.publicCreate const result = publicCreate === true || publicCreate === 1 - console.log('[PAGE] canCreate computed:', result, '(publicCreate:', publicCreate, 'type:', typeof publicCreate, ')') return result }) -// Debug current view state -watch([view, recordId, editConfig, currentRecord, loading, dataLoading], ([v, rid, ec, cr, l, dl]) => { - console.log('[PAGE] View state changed:') - console.log(' - view:', v) - console.log(' - recordId:', rid) - console.log(' - editConfig exists?', !!ec) - console.log(' - currentRecord exists?', !!cr) - console.log(' - loading:', l) - console.log(' - dataLoading:', dl) - console.log(' - Should show EditView?', (v === 'edit' || rid === 'new') && !!ec) -}, { immediate: true }) - // Fetch object definition const fetchObjectDefinition = async () => { try {