From 568d6a0dc41b648d92baa28e138e78f4a31ed9b0 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 22 Oct 2025 09:17:54 -0700 Subject: [PATCH] fix: allow custom project id on self-hosted Becuase the id was undefined, svelte threw a props_invalid_value error Cannot do `bind:id={undefined}` when `id` has a fallback value This PR updates the id to be an empty string to match other areas where we do something similar. --- .../organization-[organization]/createProject.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/organization-[organization]/createProject.svelte b/src/routes/(console)/organization-[organization]/createProject.svelte index 340c66efa..1951eb240 100644 --- a/src/routes/(console)/organization-[organization]/createProject.svelte +++ b/src/routes/(console)/organization-[organization]/createProject.svelte @@ -16,7 +16,7 @@ const dispatch = createEventDispatcher(); - let id: string; + let id: string = ''; let error: string; let showCustomId = false; let disabled: boolean = false; @@ -28,7 +28,7 @@ disabled = true; showSubmissionLoader = true; const project = await sdk.forConsole.projects.create({ - projectId: id ?? ID.unique(), + projectId: id || ID.unique(), name, teamId });