mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-29 08:08:59 +08:00
fix(project): 修复对话框关闭前瞬间显示「未选择」的闪烁问题
- 移除关闭时重置状态的 useEffect 分支,避免关闭前短暂清空 - 开发镜像文案改为「开发环境的系统镜像」 Made-with: Cursor
This commit is contained in:
1 parent
220174a387
commit
0aeed178fc
2 files changed
+1
-5
No files matched your search
@@ -30,8 +30,6 @@ export default function EditProjectEnvDialog({
|
||||
const dict = project.env_variables ?? {}
|
||||
const vars: EnvVar[] = Object.entries(dict).map(([key, value]) => ({ key, value: String(value ?? "") }))
|
||||
setEnvVars(vars.length > 0 ? vars : [])
|
||||
} else if (!open) {
|
||||
setEnvVars([])
|
||||
}
|
||||
}, [open, project])
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ export default function EditProjectImageDialog({
|
||||
if (open && project) {
|
||||
const imageId = project.image_id ?? ""
|
||||
setSelectedImageId(imageId)
|
||||
} else if (!open) {
|
||||
setSelectedImageId("")
|
||||
}
|
||||
}, [open, project])
|
||||
|
||||
@@ -70,7 +68,7 @@ export default function EditProjectImageDialog({
|
||||
<DialogHeader>
|
||||
<DialogTitle>开发镜像</DialogTitle>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
为项目绑定开发环境使用的 Docker 镜像
|
||||
为项目绑定开发环境的系统镜像
|
||||
</p>
|
||||
</DialogHeader>
|
||||
<div className="space-y-4">
|
||||
|
||||
Reference in new issue
Block a user