Skip to content

[Bug] #3061

@dragoncdj

Description

@dragoncdj

Contact Information

dejiangchen@outlook.com

MaxKB Version

社区版

Problem Description

创建应用后演示页面无法打开,前端报错Cannot read properties of undefined (reading 'properties')

Steps to Reproduce

创建应用后演示页面无法打开
vue端报报错如下

Image

The expected correct result

在163行之后改成以下内容
const isUserInput = computed(() => {
return (
props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0]
?.properties.user_input_field_list.length > 0
)
})

const isAPIInput = computed(() => {
return (
props.type === 'debug-ai-chat' &&
props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0]
?.properties.api_input_field_list.length > 0
)
})

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions