Skip to content

Commit 0228871

Browse files
committed
Handle missing nwos returned from graphql query
1 parent f73bda4 commit 0228871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/remote-queries/remote-queries-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ export class RemoteQueriesManager extends DisposableObject {
192192
databaseSha: item.sha || 'HEAD',
193193
resultCount: item.resultCount,
194194
fileSizeInBytes: item.sarifFileSize ? item.sarifFileSize : item.bqrsFileSize,
195-
starCount: metadata[item.nwo].starCount,
196-
lastUpdated: metadata[item.nwo].lastUpdated,
195+
starCount: metadata[item.nwo]?.starCount,
196+
lastUpdated: metadata[item.nwo]?.lastUpdated,
197197
downloadLink: {
198198
id: item.artifactId.toString(),
199199
urlPath: `${resultIndex.artifactsUrlPath}/${item.artifactId}`,

0 commit comments

Comments
 (0)