mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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(),
|
||||
})
|
||||
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
|
||||
? 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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue