fix: Add application nodes in advanced orchestration, unpublished applications are not filtered out (#3820)

This commit is contained in:
shaohuzhang1 2025-08-05 16:53:51 +08:00 committed by GitHub
parent 81e9c596b7
commit 5426e90234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -277,7 +277,7 @@ async function getApplicationList() {
folder_id: folder.currentFolder?.id || user.getWorkspaceId(),
})
applicationList.value = res.data.filter(
(item: any) => item.resource_type === 'application' && item.id !== props.id,
(item: any) => item.resource_type === 'application' && item.id !== props.id && item.is_publish,
)
}

View File

@ -53,10 +53,6 @@ function visibleChange(bool: boolean) {
options.value = props.global
? props.nodeModel
.get_up_node_field_list(false, true)
.map((v: any) => {
console.log(v)
return v
})
.filter(
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
)