@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user