diff --git a/backend/src/routes/equipment.js b/backend/src/routes/equipment.js index d2ed7c7..b10f8a5 100644 --- a/backend/src/routes/equipment.js +++ b/backend/src/routes/equipment.js @@ -274,6 +274,9 @@ router.get('/:id', validateParams(idParamSchema), async (req, res, next) => { // @access Private router.post('/', async (req, res, next) => { try { + console.log('Equipment creation request body:', req.body); + console.log('User ID:', req.user.id); + const { equipmentTypeId, categoryId, diff --git a/frontend/src/components/Maps/PropertyMap.js b/frontend/src/components/Maps/PropertyMap.js index 82f9295..b758515 100644 --- a/frontend/src/components/Maps/PropertyMap.js +++ b/frontend/src/components/Maps/PropertyMap.js @@ -390,6 +390,25 @@ const PropertyMap = ({ ); })} + {/* Debug: Add a test polygon to see if polygons work at all */} + {property?.latitude && property?.longitude && ( + + )} + {/* Current polygon being drawn */} {currentPolygon.length > 0 && ( <>