Skip to content

Commit 45d9c5b

Browse files
authored
🤖 fix: redirect to new chat after adding project (#1028)
_Generated with `mux`_ After adding a new project via the create modal, the user is now automatically redirected to a new chat for that project by calling `beginWorkspaceCreation(normalizedPath)` alongside `addProject`.
1 parent 8823ca8 commit 45d9c5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/browser/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,10 @@ function AppInner() {
680680
<ProjectCreateModal
681681
isOpen={isProjectCreateModalOpen}
682682
onClose={closeProjectCreateModal}
683-
onSuccess={addProject}
683+
onSuccess={(normalizedPath, projectConfig) => {
684+
addProject(normalizedPath, projectConfig);
685+
beginWorkspaceCreation(normalizedPath);
686+
}}
684687
/>
685688
<SettingsModal />
686689
</div>

0 commit comments

Comments
 (0)