Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client/src/api/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ export async function fetchDatasetTextContentDetails(params: { id: string }): Pr
return data;
}

export async function fetchDatasetDetails(params: { id: string }, view: string = "detailed"): Promise<HDADetailed> {
export async function fetchDatasetDetails(params: { id: string }, signal?: AbortSignal): Promise<HDADetailed> {
const { data, error, response } = await GalaxyApi().GET("/api/datasets/{dataset_id}", {
params: {
path: {
dataset_id: params.id,
},
query: { view },
query: { view: "detailed" },
},
signal,
});

if (error) {
Expand Down
2 changes: 1 addition & 1 deletion client/src/composables/keyedCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface FetchParams {
/**
* A function that fetches an item from the server.
*/
type FetchHandler<T> = (params: FetchParams) => Promise<T>;
type FetchHandler<T> = (params: FetchParams, signal?: AbortSignal) => Promise<T>;

/**
* A function that returns true if the item should be fetched.
Expand Down
Loading