Skip to content

Commit

Permalink
fix: 处理节点配置不存在plugin_version情况 --story=120926155
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25109
  • Loading branch information
ywywZhou committed Nov 28, 2024
1 parent 821f7b5 commit 4e3f351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/task/TaskExecute/ExecuteInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
},
// 补充记录缺少的字段
async setFillRecordField(record) {
const { version, component_code: componentCode, componentData } = this.nodeDetailConfig;
const { version, component_code: componentCode, componentData = {} } = this.nodeDetailConfig;
const { inputs, state } = record;
let { outputs } = record;
// 执行记录的outputs可能为Object格式,需要转为Array格式
Expand Down Expand Up @@ -563,7 +563,7 @@
const { constants } = islegacySubProcess ? this.pipelineData : this.componentValue.pipeline;
this.renderConfig = await this.getSubflowInputsConfig(constants);
} else if (componentCode) { // 任务节点需要加载标准插件
const pluginVersion = componentData.plugin_version.value;
const pluginVersion = componentData.plugin_version?.value;
await this.getNodeConfig(componentCode, version, pluginVersion);
}
inputsInfo = Object.keys(inputs).reduce((acc, cur) => {
Expand Down

0 comments on commit 4e3f351

Please sign in to comment.