Fix state-mutating getter in LengthItem.Length

Remove dangerous side effect where the Length property getter
was modifying the LengthInputValue field. Property getters should
be pure and not cause state mutations, as this violates the principle
of least surprise and can cause issues with data binding, serialization,
and debugging.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
AJ
2025-11-18 16:02:27 -05:00
parent 2869daf4f7
commit ee7275ac4f

View File

@@ -22,7 +22,6 @@ namespace CutList.Models
if (double.TryParse(input, out d)) if (double.TryParse(input, out d))
{ {
LengthInputValue += "\"";
return d; return d;
} }