update property detail

This commit is contained in:
Jake Kasper
2025-09-04 06:34:44 -05:00
parent 2ce03628a5
commit a5d2cf3ca0

View File

@@ -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));