File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -248,15 +248,18 @@ async function getToolFolder() {
248248}
249249
250250async function getToolList() {
251- const baseType = activeName .value == ' DATA_SOURCE_TOOL' ? ' DATA_SOURCE' : ' CUSTOM'
251+ const baseTypeParams =
252+ activeName .value == ' DATA_SOURCE_TOOL'
253+ ? { tool_type: ' DATA_SOURCE' }
254+ : { tool_type_list: [' CUSTOM' , ' WORKFLOW' ] }
252255
253256 const res = await loadSharedApi ({
254257 type: ' tool' ,
255258 isShared: folder .currentFolder ?.id === ' share' ,
256259 systemType: apiType .value ,
257260 }).getToolList ({
258261 folder_id: folder .currentFolder ?.id || user .getWorkspaceId (),
259- tool_type_list: [ baseType , ' WORKFLOW ' ] ,
262+ ... baseTypeParams ,
260263 })
261264 toolList .value = res .data ?.tools || res .data || []
262265 toolList .value = toolList .value ?.filter ((item : any ) => item .is_active )
You can’t perform that action at this time.
0 commit comments