LHF: seriesLimit input can produce NaN #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Low-Hanging Fruit
File:
web/components/ChartEditor.tsxThe
seriesLimitinput usesNumber(e.target.value)which can produce NaN if the input is empty or non-numeric:Impact
If user clears the input,
seriesLimitbecomes0orNaN, which gets sent to the API. The DB column isinteger NOT NULL DEFAULT 20, so a 0 would pass through.Fix
Effort
2 minutes.