File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,13 @@ type CopyContentBodyType = components["schemas"]["CreateHistoryContentPayload"];
7575export async function copyContent (
7676 contentId : CopyContentBodyType [ "content" ] ,
7777 historyId : CopyContentParamsType [ "path" ] [ "history_id" ] ,
78- type : CopyContentParamsType [ "path" ] [ "type" ] = "dataset"
78+ type : CopyContentParamsType [ "path" ] [ "type" ] = "dataset" ,
79+ source : CopyContentBodyType [ "source" ] = null
7980) {
80- const source = type === "dataset" ? "hda" : "hdca" ;
81+ // match source from type unless explicitly provided
82+ if ( source === null ) {
83+ source = type === "dataset" ? "hda" : "hdca" ;
84+ }
8185 const { data, error } = await GalaxyApi ( ) . POST ( "/api/histories/{history_id}/contents/{type}s" , {
8286 params : {
8387 path : { history_id : historyId , type } ,
You can’t perform that action at this time.
0 commit comments