diff --git a/backend/app/main.py b/backend/app/main.py index d71210c..ff8595d 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -1402,7 +1402,7 @@ def generate_inspection_pdf(inspection_id: int, db: Session) -> str: checklist = db.query(models.Checklist).filter(models.Checklist.id == inspection.checklist_id).first() # Obtener logo principal de configuración para el PDF - config = db.query(models.Config).first() + config = db.query(models.AIConfiguration).filter(models.AIConfiguration.is_active == True).first() logo_url_to_use = None if config and getattr(config, "logo_url", None): logo_url_to_use = config.logo_url diff --git a/frontend/package.json b/frontend/package.json index dc82bcf..416c2bd 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "checklist-frontend", "private": true, - "version": "1.0.76", + "version": "1.0.77", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 80328d7..3266b90 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -3273,15 +3273,14 @@ function InspectionDetailModal({ inspection, user, onClose, onUpdate }) { - {/* Answer Value (si aplica) */} + {/* Answer Value - Usar el componente visual adecuado según tipo de pregunta */} {question.type !== 'pass_fail' && (
- setEditFormData({...editFormData, answer_value: e.target.value})} - className="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500" + onChange={(newValue) => setEditFormData({...editFormData, answer_value: newValue})} />
)}