feat: add FileDescriptionContainer for managing file descriptions and integrate with FileActions

This commit is contained in:
2025-05-04 17:00:56 +02:00
parent 344334592e
commit 1d302eb217
4 changed files with 49 additions and 10 deletions
+2 -1
View File
@@ -48,7 +48,8 @@ export async function PUT(req: Request) {
try {
const body = (await req.json()) as { id: string; description: string } | null;
if (!body?.id || !body.description) {
if (!body?.id || body.description === undefined) {
// Allow empty description but ensure id is present
return NextResponse.json({ error: "Invalid request body" }, { status: 400 });
}