File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -250,8 +250,11 @@ $(() => {
250250
251251 QPixel . handleJSONResponse ( data , ( ) => {
252252 const wrapper = getCommentThreadWrapper ( $tgt ) ;
253- const inline = isInlineCommentThread ( wrapper ) ;
254- openThread ( wrapper , threadID , { inline } ) ;
253+
254+ if ( wrapper ) {
255+ const inline = isInlineCommentThread ( wrapper ) ;
256+ openThread ( wrapper , threadID , { inline } ) ;
257+ }
255258 } ) ;
256259 } ) ;
257260
@@ -265,8 +268,11 @@ $(() => {
265268
266269 QPixel . handleJSONResponse ( data , ( ) => {
267270 const wrapper = getCommentThreadWrapper ( $tgt ) ;
268- const inline = isInlineCommentThread ( wrapper ) ;
269- openThread ( wrapper , threadID , { inline } ) ;
271+
272+ if ( wrapper ) {
273+ const inline = isInlineCommentThread ( wrapper ) ;
274+ openThread ( wrapper , threadID , { inline } ) ;
275+ }
270276 } ) ;
271277 } )
272278
You can’t perform that action at this time.
0 commit comments