Skip to content

Commit 0e8f8bd

Browse files
megothsscvx
andauthored
Apply suggestions from code review
Co-authored-by: Jarek Radosz <[email protected]>
1 parent cb0a286 commit 0e8f8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/discourse/models/post-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class PostStream extends RestModel {
1919

2020
@dependentKeyCompat
2121
get lastPostCreatedAt() {
22-
return this.content.at(-1).created_at;
22+
return this.content.at(-1)?.created_at;
2323
}
2424

2525
@dependentKeyCompat

0 commit comments

Comments
 (0)