forked from fahrPool/fahrPool
Finding 1: React 19's native <form action={fn}> resets uncontrolled
fields once fn resolves without throwing, regardless of an app-level
{success:false} result. Since handleSubmit never throws, every failed
submit (e.g. duplicate Kennzeichen) silently wiped user edits. Switched
all four Standorte/Fahrzeuge inline-edit and create forms to a plain
onSubmit handler that calls event.preventDefault() and builds FormData
from the submitted element manually, sidestepping React's action-reset
machinery.
Finding 2: web/app/standorte/actions.ts and web/app/fahrzeuge/actions.ts
each declared their own MutationResult type shadowing the differently
shaped MutationResult exported from lib/orte-fahrzeuge/mutations.ts.
Renamed the local type to ActionResult in both files to remove the
name collision.
|
||
|---|---|---|
| .. | ||
| dashboard | ||
| fahrzeuge | ||
| standorte | ||
| ui | ||
| zeiterfassung | ||
| AuftragListe.tsx | ||
| LogoutButton.tsx | ||
| MobileNav.tsx | ||
| NavLinks.tsx | ||