File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -435,12 +435,10 @@ export function initRepoPullRequestReview() {
435
435
offset += $ ( '.diff-detail-box' ) . outerHeight ( ) + $ ( diffHeader ) . outerHeight ( ) ;
436
436
}
437
437
438
- document . getElementById ( `show-outdated-${ id } ` ) . classList . add ( 'tw-hidden' ) ;
439
- document . getElementById ( `code-comments-${ id } ` ) . classList . remove ( 'tw-hidden' ) ;
440
- document . getElementById ( `code-preview-${ id } ` ) . classList . remove ( 'tw-hidden' ) ;
441
- document . getElementById ( `hide-outdated-${ id } ` ) . classList . remove ( 'tw-hidden' ) ;
438
+ hideElem ( `#show-outdated-${ id } ` ) ;
439
+ showElem ( `#code-comments-${ id } , #code-preview-${ id } , #hide-outdated-${ id } ` ) ;
442
440
// if the comment box is folded, expand it
443
- if ( ancestorDiffBox . getAttribute ( 'data-folded' ) === 'true' ) {
441
+ if ( ancestorDiffBox ? .getAttribute ( 'data-folded' ) === 'true' ) {
444
442
setFileFolding ( ancestorDiffBox , ancestorDiffBox . querySelector ( '.fold-file' ) , false ) ;
445
443
}
446
444
You can’t perform that action at this time.
0 commit comments