Signed-off-by: erdoganoksuz <erdoganoksuz95@gmail.com>
This commit is contained in:
erdoganoksuz
2021-03-12 15:14:17 +03:00
parent 9ca0e40094
commit 196d8ec327
8 changed files with 40 additions and 34 deletions
@@ -17,7 +17,9 @@ import { useAsync } from 'react-use';
import { ActionsListWorkflowRunsForRepoResponseData } from '../../api/types';
export const useWorkflowRunJobs = (jobsUrl?: string) => {
const jobs = useAsync(async (): Promise<ActionsListWorkflowRunsForRepoResponseData> => {
const jobs = useAsync(async (): Promise<
ActionsListWorkflowRunsForRepoResponseData
> => {
if (jobsUrl === undefined) {
return {
builds: [],