Skip to content

The only tool you need to know what is happening and how to fix it.

bug: fix so that auth can work based on the organization because that's where the permissions are

dduxc8ceb8afc561
diff --git a/frontend/src/lib/state/projects.svelte.ts b/frontend/src/lib/state/projects.svelte.ts
index bc70d648..c1398b2f 100644
--- a/frontend/src/lib/state/projects.svelte.ts
+++ b/frontend/src/lib/state/projects.svelte.ts
@@ -83,7 +83,9 @@ class ProjectsState {
}
async createProject(name: string, framework: Framework = 'gin'): Promise<ProjectWithToken> {
- const response = await api.post('/projects', { name, framework });
+ const response = await api.post('/projects', { name, framework }, {
+ projectId: this.currentProjectId ?? undefined
+ });
// Reload projects to refresh cache
await this.loadProjects();