Skip to content

Commit 1e2e97e

Browse files
authored
Merge pull request #1496 from Duet3D/hotfix-filechecks
updating comment
2 parents 0386b1f + 2a73cbf commit 1e2e97e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nodescriptsTS/src/statUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ const createPluginVersionEntry = async (plugin_id:string, author:string, gh_rele
127127

128128

129129
let releases = gh_release_data.map( x=> {
130+
console.log("Releases x", x)
130131
return {
131132
tag_name: x.tag_name,
132133
name: x.name,
133-
download_url: x.assets[0].browser_download_url,
134+
download_url: (((x||{}).assets||[{}])[0]||{}).browser_download_url,
134135
published_at: x.published_at
135136
}
136137
})

0 commit comments

Comments
 (0)