File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
177
177
public focusIfNeeded ( ) {
178
178
if ( ! this . _commentThread . comments || ! this . _commentThread . comments . length ) {
179
179
this . commentEditor . focus ( ) ;
180
- } else if ( this . commentEditor . getModel ( ) ! . getValueLength ( ) > 0 ) {
180
+ } else if ( ( this . commentEditor . getModel ( ) ? .getValueLength ( ) ?? 0 ) > 0 ) {
181
181
this . expandReplyArea ( ) ;
182
182
}
183
183
}
@@ -195,10 +195,6 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
195
195
return this . commentEditor . hasWidgetFocus ( ) ;
196
196
}
197
197
198
- public getCommentModel ( ) {
199
- return this . commentEditor . getModel ( ) ! ;
200
- }
201
-
202
198
public updateCanReply ( ) {
203
199
if ( ! this . _commentThread . canReply ) {
204
200
this . form . style . display = 'none' ;
You can’t perform that action at this time.
0 commit comments