Skip to content

Commit

Permalink
cci(csr): fix diff view going missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Nov 16, 2024
1 parent 3537070 commit a50d3cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/root/DeputyContributionSurveyRevision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default class DeputyContributionSurveyRevision

/**
* The <div> of this element.
*
* @private
*/
private element: HTMLElement;
Expand All @@ -88,12 +89,14 @@ export default class DeputyContributionSurveyRevision
private completedCheckbox: OO.ui.CheckboxInputWidget;
/**
* The toggle button to show and hide a diff view of the given revision.
*
* @private
*/
private diffToggle: OO.ui.ToggleButtonWidget;
/**
* The diff view of the given revision. May also be "loading" text, or
* null if the diff view has not yet been set.
*
* @private
*/
private diff: HTMLElement | null = null;
Expand Down Expand Up @@ -281,8 +284,7 @@ export default class DeputyContributionSurveyRevision
return;
}
// Delete all no-change rows (gray rows)
// !(.diff-markers with a marker) = no change for row
if ( !tr.querySelector( 'td.diff-marker[data-marker]' ) ) {
if ( tr.querySelector( 'td.diff-context' ) ) {
removeElement( tr );
}
} );
Expand Down

0 comments on commit a50d3cc

Please sign in to comment.