fix: 修复 WorkspaceDetail.tsx TS 编译错误(移除 workspace_id 参数)
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
This commit is contained in:
@@ -23,7 +23,7 @@ const WorkspaceDetail: React.FC = () => {
|
||||
|
||||
const projectsQuery = useQuery({
|
||||
queryKey: ['projects', id],
|
||||
queryFn: () => getProjects(id!),
|
||||
queryFn: () => getProjects(),
|
||||
enabled: !!id,
|
||||
});
|
||||
|
||||
@@ -44,7 +44,6 @@ const WorkspaceDetail: React.FC = () => {
|
||||
const handleCreateProject = async () => {
|
||||
const values = await projectForm.validateFields();
|
||||
createProjectMutation.mutate({
|
||||
workspace_id: id!,
|
||||
name: values.name,
|
||||
description: values.description || '',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user