fix: Projekt-Anlegen robuster — klare Netzwerkfehler und gezielter Listen-Refresh.
Deploy Development / deploy (push) Successful in 50s
Test Suite / pytest-backend (push) Failing after 1m45s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 8s
Test Suite / compose-smoke (push) Has been skipped

Vermeidet irreführendes Fail to fetch nach erfolgreichem POST und hält das Formular bei Fehlern offen.
This commit is contained in:
Lars committed 2026-07-08 10:54:58 +02:00
1 parent bff1248e32
commit 94e815e88a
3 files changed
+28 -6

No files matched your search

+2 -1
View File
@@ -109,13 +109,14 @@ export function ProjectsSection({
async function handleSubmit(e) {
e.preventDefault()
if (!title.trim()) return
await onCreate({
const ok = await onCreate({
title: title.trim(),
description: description.trim(),
parent_project_id: parentProjectId || undefined,
container_kind: containerKind || undefined,
roadmap_item_id: gateId || undefined,
})
if (!ok) return
setTitle('')
setDescription('')
setParentProjectId('')