Skip to content

Commit 1c38681

Browse files
JeanMechekirjs
authored andcommitted
docs(docs-infra): fix visible lines/regions
fixes angular#65552
1 parent 8555652 commit 1c38681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class ExampleViewer {
188188
const appendGapBefore = [];
189189

190190
for (const [index, line] of lines.entries()) {
191-
if (!linesToDisplay.includes(index)) {
191+
if (!linesToDisplay.includes(index + 1)) {
192192
line.classList.add(HIDDEN_CLASS_NAME);
193193
} else if (!linesToDisplay.includes(index - 1)) {
194194
appendGapBefore.push(line);

0 commit comments

Comments
 (0)