Signed-off-by: erdoganoksuz <erdoganoksuz95@gmail.com>
This commit is contained in:
erdoganoksuz
2021-03-12 15:35:25 +03:00
parent 6af831266e
commit b7a061077f
9 changed files with 42 additions and 49 deletions
@@ -17,9 +17,7 @@ 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: [],