From a5d2cf3ca0282adf464a163b8b441b985a7f0e69 Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Thu, 4 Sep 2025 06:34:44 -0500 Subject: [PATCH] update property detail --- frontend/src/pages/Properties/PropertyDetail.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Properties/PropertyDetail.js b/frontend/src/pages/Properties/PropertyDetail.js index 5800dcc..ae9d4bf 100644 --- a/frontend/src/pages/Properties/PropertyDetail.js +++ b/frontend/src/pages/Properties/PropertyDetail.js @@ -481,7 +481,9 @@ const PropertyDetail = () => { name: savedSection.name, coordinates: savedSection.polygonData.coordinates[0], color: savedSection.polygonData.color, - area: savedSection.area + area: savedSection.area, + grassType: savedSection.grassType || '', + grassTypes: savedSection.grassTypes || [] }; setLawnSections(prev => [...prev, newSection]); @@ -546,7 +548,9 @@ const PropertyDetail = () => { const updatedSection = { ...editingSection, name: sectionName, - color: currentColor + color: currentColor, + grassType: editGrassTypes.join(', '), + grassTypes: [...editGrassTypes] }; setLawnSections(prev => prev.map(s => s.id === editingSection.id ? updatedSection : s));