File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,10 @@ const ProjectPage: React.FC = () => {
29
29
const { data : projectInfo , error : projectError } = useSWR < Project , Error > (
30
30
( ) => `/api/v2/projects/${ organization } /${ project } ` ,
31
31
)
32
- let { data : workspaces , error : workspacesError } = useSWR < Workspace [ ] , Error > (
32
+ const { data : workspaces , error : workspacesError } = useSWR < Workspace [ ] , Error > (
33
33
( ) => `/api/v2/projects/${ organization } /${ project } /workspaces` ,
34
34
)
35
35
36
- workspaces = [ MockWorkspace ]
37
-
38
36
if ( projectError ) {
39
37
return < ErrorSummary error = { projectError } />
40
38
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const CreateProjectPage: React.FC = () => {
29
29
30
30
const onSubmit = async ( req : API . CreateProjectRequest ) => {
31
31
const project = await API . Project . create ( req )
32
- await router . push ( " /projects" )
32
+ await router . push ( ` /projects/ ${ req . organizationId } / ${ project . name } ` )
33
33
return project
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments