fix: Add application nodes in advanced orchestration, unpublished applications are not filtered out (#3820)
This commit is contained in:
parent
81e9c596b7
commit
5426e90234
@ -277,7 +277,7 @@ async function getApplicationList() {
|
|||||||
folder_id: folder.currentFolder?.id || user.getWorkspaceId(),
|
folder_id: folder.currentFolder?.id || user.getWorkspaceId(),
|
||||||
})
|
})
|
||||||
applicationList.value = res.data.filter(
|
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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -53,10 +53,6 @@ function visibleChange(bool: boolean) {
|
|||||||
options.value = props.global
|
options.value = props.global
|
||||||
? props.nodeModel
|
? props.nodeModel
|
||||||
.get_up_node_field_list(false, true)
|
.get_up_node_field_list(false, true)
|
||||||
.map((v: any) => {
|
|
||||||
console.log(v)
|
|
||||||
return v
|
|
||||||
})
|
|
||||||
.filter(
|
.filter(
|
||||||
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
|
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user