Skip to content

Commit f984875

Browse files
somebody1234farmaazon
authored andcommitted
Fix opening new project (#12812)
- Fix #12810 - Provide `ensoPath` (from backend) when running new project otherwise Hybrid execution crashes - Fix enso-org/cloud-v2#1889 - Same as above # Important Notes None
1 parent 8087e9d commit f984875

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/common/src/services/Backend.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ export interface BaseProject {
315315
export interface CreatedProject extends BaseProject {
316316
readonly state: ProjectStateType
317317
readonly packageName: string
318+
readonly ensoPath?: EnsoPath
318319
}
319320

320321
/** A `Project` returned by the `listProjects` endpoint. */

app/gui/src/dashboard/hooks/backendHooks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ export function useNewProject(backend: Backend, category: Category) {
599599
id: createdProject.projectId,
600600
parentId: placeholderItem.parentId,
601601
title: createdProject.name,
602-
}
602+
...(createdProject.ensoPath != null ? { ensoPath: createdProject.ensoPath } : {}),
603+
} satisfies Partial<backendModule.ProjectAsset>
603604
if (runLocally) {
604605
// Open in background.
605606
void openProjectLocally(openProjectParams, backend.type)

0 commit comments

Comments
 (0)