File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ const ProjectPage = () => {
8585
8686 useEffect ( ( ) => {
8787 if ( selectedBuildId ) {
88- buildsService . getTestRuns ( selectedBuildId ) . then ( ( testRuns : TestRun [ ] ) => {
89- setTestRuns ( testRuns ) ;
88+ buildsService . get ( selectedBuildId ) . then ( ( build ) => {
89+ setTestRuns ( build . testRuns ) ;
9090 } ) ;
9191 }
9292 } , [ selectedBuildId ] ) ;
Original file line number Diff line number Diff line change 1- import { TestRun } from "../types" ;
1+ import { Build } from "../types" ;
22import { handleResponse , authHeader } from "../_helpers/service.helpers" ;
33import { API_URL } from "../_config/api.config" ;
44
55export const buildsService = {
6- getTestRuns ,
6+ get ,
77 remove,
88} ;
99
10- function getTestRuns ( id : string ) : Promise < TestRun [ ] > {
10+ function get ( id : string ) : Promise < Build > {
1111 const requestOptions = {
1212 method : "GET" ,
1313 headers : authHeader ( ) ,
You can’t perform that action at this time.
0 commit comments