Skip to content

Commit

Permalink
optimize getTasks function
Browse files Browse the repository at this point in the history
Signed-off-by: liuxsh9 <liuxiaoshuang4@huawei.com>
  • Loading branch information
liuxsh9 committed Jun 12, 2024
1 parent e4b68f4 commit 6941eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/client/src/service/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { get } from "./requestHandlers";
export const getTasks = (jobId: string | undefined) => {
let url = "api/v0/tasks?detail=1&limit=10000";
if (jobId) {
url += `&job_id=${jobId}`;
url += `&filter_keys=job_id&filter_predicates=%3D&filter_values=${jobId}`;
}
return get<StateApiResponse<Task>>(url);
};
Expand Down

0 comments on commit 6941eb4

Please sign in to comment.