Skip to content

Commit 1086359

Browse files
authored
fix(protal-web): 作业模版没填备注时显示“无法解析内容” (#1475)
![image](https://github.com/user-attachments/assets/979a3a26-ee5c-41f2-b26e-69eaf1e95b22)
1 parent 09d96e1 commit 1086359

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/angry-humans-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scow/portal-web": patch
3+
---
4+
5+
修复作业模版无备注时显示“无法解析内容”

apps/portal-server/src/clusterops/job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const jobOps = (cluster: string): JobOps => {
8686
return {
8787
id: filename,
8888
submitTime: ("submitTime" in data && data.submitTime) ? new Date(data.submitTime) : new Date(),
89-
comment: ("comment" in data && data.comment) ? data.comment : "无法解析的内容",
89+
comment: ("comment" in data && data.comment) ? data.comment : "",
9090
jobName: ("jobName" in data && data.jobName) ? data.jobName : "unknown",
9191
} as JobTemplateInfo;
9292
}));

0 commit comments

Comments
 (0)