Skip to content

Commit 5426e90

Browse files
authored
fix: Add application nodes in advanced orchestration, unpublished applications are not filtered out (#3820)
1 parent 81e9c59 commit 5426e90

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ui/src/views/application-workflow/component/DropdownMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ async function getApplicationList() {
277277
folder_id: folder.currentFolder?.id || user.getWorkspaceId(),
278278
})
279279
applicationList.value = res.data.filter(
280-
(item: any) => item.resource_type === 'application' && item.id !== props.id,
280+
(item: any) => item.resource_type === 'application' && item.id !== props.id && item.is_publish,
281281
)
282282
}
283283

ui/src/workflow/common/NodeCascader.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ function visibleChange(bool: boolean) {
5353
options.value = props.global
5454
? props.nodeModel
5555
.get_up_node_field_list(false, true)
56-
.map((v: any) => {
57-
console.log(v)
58-
return v
59-
})
6056
.filter(
6157
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
6258
)

0 commit comments

Comments
 (0)