Fix compile error because of required new actions parameter
Change-Id: I180e7493d7647db9421b8cb750e3ebaee53f9a8e
This commit is contained in:
@@ -71,8 +71,8 @@ export interface FetchResponse {
|
||||
* Top-level actions that are not associated with a specific run or result.
|
||||
* Will be shown as buttons in the header of the Checks tab.
|
||||
*/
|
||||
actions: Action[];
|
||||
runs: CheckRun[];
|
||||
actions?: Action[];
|
||||
runs?: CheckRun[];
|
||||
}
|
||||
|
||||
export enum ResponseCode {
|
||||
|
||||
@@ -65,7 +65,6 @@ export class ChecksService {
|
||||
return of({
|
||||
responseCode: ResponseCode.OK,
|
||||
runs: [],
|
||||
results: [],
|
||||
});
|
||||
}
|
||||
return from(
|
||||
@@ -74,7 +73,7 @@ export class ChecksService {
|
||||
}
|
||||
),
|
||||
tap(response => {
|
||||
updateStateSetResults(pluginName, response.runs);
|
||||
updateStateSetResults(pluginName, response.runs ?? []);
|
||||
})
|
||||
)
|
||||
.subscribe(() => {});
|
||||
|
||||
Reference in New Issue
Block a user