diff --git a/frontend/package.json b/frontend/package.json index 026c175..c217920 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "checklist-frontend", "private": true, - "version": "1.3.2", + "version": "1.3.3", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/public/service-worker.js b/frontend/public/service-worker.js index 705f31b..be650a3 100644 --- a/frontend/public/service-worker.js +++ b/frontend/public/service-worker.js @@ -1,6 +1,6 @@ // Service Worker para PWA con detección de actualizaciones // IMPORTANTE: Actualizar esta versión cada vez que se despliegue una nueva versión -const CACHE_NAME = 'ayutec-v1.3.2'; +const CACHE_NAME = 'ayutec-v1.3.3'; const urlsToCache = [ '/', '/index.html' diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index bd8e2ab..7245b6c 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -5657,7 +5657,7 @@ function AIAssistantChatModal({ question, inspection, allAnswers, messages, setM // NUEVO: Agregar respuestas de texto (incluyendo observations) if (answer?.value || answer?.observations) { // Buscar la pregunta para obtener su texto y tipo - const questionData = inspection.checklist.questions.find(q => q.id === qId) + const questionData = inspection?.checklist?.questions?.find(q => q.id === qId) // Formatear respuesta según el tipo de pregunta let formattedAnswer = answer.value || '' diff --git a/frontend/src/Sidebar.jsx b/frontend/src/Sidebar.jsx index 01ea285..55e626a 100644 --- a/frontend/src/Sidebar.jsx +++ b/frontend/src/Sidebar.jsx @@ -153,7 +153,7 @@ export default function Sidebar({ user, activeTab, setActiveTab, sidebarOpen, se className="w-10 h-10 object-contain bg-white rounded p-1" />

- Ayutec v1.3.2 + Ayutec v1.3.3