Skip to content

Commit 2163015

Browse files
committed
fix(update): improve type safety for release notes handling
- Handle null values in release notes array properly - Convert null notes to empty strings instead of 'null' - Prevents potential runtime issues with malformed release notes
1 parent a782084 commit 2163015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/electron-app/src/main/services/update-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default class AppUpdater {
183183
if (typeof releaseNotes === "string") {
184184
notes = releaseNotes;
185185
} else {
186-
notes = releaseNotes.map(note => note.note).join("\n");
186+
notes = releaseNotes.map(note => note.note || "").join("\n");
187187
}
188188

189189
// Strip HTML tags and format for native dialog

0 commit comments

Comments
 (0)