fix: project edit status dropdown empty for projects with blank status
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m35s
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m35s
Use || instead of ?? so empty string '' falls back to 'SUBMITTED'. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -205,7 +205,7 @@ function EditProjectContent({ projectId }: { projectId: string }) {
|
||||
title: project.title,
|
||||
teamName: project.teamName || '',
|
||||
description: project.description || '',
|
||||
status: (project.status ?? 'SUBMITTED') as UpdateProjectForm['status'],
|
||||
status: (project.status || 'SUBMITTED') as UpdateProjectForm['status'],
|
||||
tags: project.tags || [],
|
||||
competitionCategory: project.competitionCategory || '',
|
||||
oceanIssue: project.oceanIssue || '',
|
||||
|
||||
Reference in New Issue
Block a user