File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,14 @@ function CommentInput({
94
94
try {
95
95
setWorking ( true )
96
96
await onSubmit ( fromNode ( inputRef . current ) . trim ( ) )
97
- inputRef . current . innerHTML = ''
97
+ if ( inputRef . current != null ) {
98
+ inputRef . current . innerHTML = ''
99
+ }
98
100
} finally {
99
101
setWorking ( false )
100
- inputRef . current . focus ( )
102
+ if ( inputRef . current != null ) {
103
+ inputRef . current . focus ( )
104
+ }
101
105
}
102
106
} , [ onSubmit ] )
103
107
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ function ThreadItem({
117
117
< div className = { 'thread__comment__line' } >
118
118
< span > { thread . contributors [ 0 ] . displayName } </ span >
119
119
< span className = 'thread__comment__line__date' >
120
- { formatDate ( thread . lastCommentTime ) }
120
+ { formatDate ( threadComments [ 0 ] . createdAt ) }
121
121
</ span >
122
122
{ editing ? (
123
123
< CommentInput
You can’t perform that action at this time.
0 commit comments