File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
components/dashboard/src/projects Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import ConfirmationModal from "../components/ConfirmationModal";
21
21
import { prebuildStatusIcon } from "./Prebuilds" ;
22
22
import Alert from "../components/Alert" ;
23
23
import { FeatureFlagContext } from "../contexts/FeatureFlagContext" ;
24
- import { listAllProjects } from "../service/public-api" ;
24
+ import { listAllProjects , projectsService } from "../service/public-api" ;
25
25
import { UserContext } from "../user-context" ;
26
26
27
27
export default function ( ) {
@@ -86,7 +86,9 @@ export default function () {
86
86
87
87
const onRemoveProject = async ( p : Project ) => {
88
88
setRemoveModalVisible ( false ) ;
89
- await getGitpodService ( ) . server . deleteProject ( p . id ) ;
89
+ usePublicApiProjectsService
90
+ ? await projectsService . deleteProject ( { projectId : p . id } )
91
+ : await getGitpodService ( ) . server . deleteProject ( p . id ) ;
90
92
await updateProjects ( ) ;
91
93
} ;
92
94
You can’t perform that action at this time.
0 commit comments