Fix compile error because of required new actions parameter

Change-Id: I180e7493d7647db9421b8cb750e3ebaee53f9a8e
This commit is contained in:
Ben Rohlfs
2020-12-17 16:56:05 +01:00
parent 725cbf4859
commit 78610c399c
2 changed files with 3 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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(() => {});