Skip to content

Commit 98c3046

Browse files
committed
feat: update folder retrieval to use source_id instead of id for consistency
1 parent dab5504 commit 98c3046

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ui/src/components/workflow-dropdown-menu/application/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const toolTreeData = ref<any[]>([])
249249
const toolList = ref<any[]>([])
250250
251251
async function getToolFolder() {
252-
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {id: props.id}, apiType.value, loading)
252+
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {source_id: props.id}, apiType.value, loading)
253253
toolTreeData.value = res.data
254254
folder.setCurrentFolder(res.data?.[0] || {})
255255
}
@@ -271,7 +271,7 @@ const applicationTreeData = ref<any[]>([])
271271
const applicationList = ref<any[]>([])
272272
273273
function getApplicationFolder() {
274-
folder.asyncGetFolder(SourceTypeEnum.APPLICATION, {id: props.id}, apiType.value, loading).then((res: any) => {
274+
folder.asyncGetFolder(SourceTypeEnum.APPLICATION, {source_id: props.id}, apiType.value, loading).then((res: any) => {
275275
applicationTreeData.value = res.data
276276
folder.setCurrentFolder(res.data?.[0] || {})
277277
})

ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const toolTreeData = ref<any[]>([])
210210
const toolList = ref<any[]>([])
211211
212212
async function getToolFolder() {
213-
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {id: props.id}, apiType.value, loading)
213+
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {source_id: props.id}, apiType.value, loading)
214214
toolTreeData.value = res.data
215215
folder.setCurrentFolder(res.data?.[0] || {})
216216
}

ui/src/components/workflow-dropdown-menu/knowledge/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const toolTreeData = ref<any[]>([])
230230
const toolList = ref<any[]>([])
231231
232232
async function getToolFolder() {
233-
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {id: props.id}, apiType.value, loading)
233+
const res: any = await folder.asyncGetFolder(SourceTypeEnum.TOOL, {source_id: props.id}, apiType.value, loading)
234234
toolTreeData.value = res.data
235235
folder.setCurrentFolder(res.data?.[0] || {})
236236
}

0 commit comments

Comments
 (0)