Skip to content

Commit 63858c2

Browse files
authored
Fix main build golden tests (#19815)
* Fix main build golden tests * fixup
1 parent 3319e5e commit 63858c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/public-api/typescript-common/fixtures/toPrebuild_1.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"startTime": "2023-11-17T10:42:00Z",
2323
"message": "",
24-
"logUrl": "https://gitpod-test.preview.gitpod-dev.com/prebuild-logs/5fba7d7c-e740-4339-b928-0e3c5975eb37"
24+
"logUrl": "https://gitpod-test.preview.gitpod-dev.com/prebuild-logs/5fba7d7c-e740-4339-b928-0e3c5975eb37",
25+
"taskLogs": []
2526
},
2627
"configurationName": "parcel-demo"
2728
},

components/public-api/typescript-common/src/public-api-converter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ export class PublicAPIConverter {
11961196

11971197
toPrebuildStatus(gitpodHost: string, prebuild: PrebuildWithStatus): PrebuildStatus {
11981198
const tasks: TaskLog[] = [];
1199-
if (prebuild.workspace.config.tasks) {
1199+
if (prebuild.workspace?.config?.tasks) {
12001200
for (let i = 0; i < prebuild.workspace.config.tasks.length; i++) {
12011201
const task = prebuild.workspace.config.tasks[i];
12021202
tasks.push(

0 commit comments

Comments
 (0)