File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/routes/(console)/(migration-wizard) Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 5757
5858 let newProjName = ' ' ;
5959 let projectType: ' existing' | ' new' = ' existing' ;
60+ let newlyCreatedProject: Models .Project | null = null ;
6061
6162 async function getProjects(orgId : string | null ) {
6263 if (! orgId ) {
125126 });
126127 onExit ();
127128 await invalidate (Dependencies .PROJECTS );
129+ const targetProject = newlyCreatedProject ?? currentSelectedProject ;
128130 await goto (
129- ` ${base }/project-${currentSelectedProject .region }-${currentSelectedProject .$id }/settings/migrations `
131+ ` ${base }/project-${targetProject .region ?? ' default ' }-${targetProject .$id }/settings/migrations `
130132 );
131133 } catch (error ) {
132134 addNotification ({
257259 } else {
258260 const project = await createNewProject ();
259261 if (project !== null ) {
262+ newlyCreatedProject = project ;
260263 projectSdkInstance = sdk .forProject (
261264 project .region ,
262265 project .$id
You can’t perform that action at this time.
0 commit comments