Skip to content

Commit 306ce04

Browse files
committed
Prevents rendering stale section
1 parent d8e4cea commit 306ce04

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/webviews/apps/plus/home/components/overview.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,16 @@ export class GlOverview extends SignalWatcher(LitElement) {
116116
.value=${this._overviewState.filter.recent?.threshold}
117117
></gl-branch-threshold-filter>
118118
</gl-branch-section>
119-
<gl-branch-section
120-
label="Stale"
121-
?hidden=${this._overviewState.filter.stale?.show !== true}
122-
.repo=${repository.path}
123-
.branches=${repository.branches.stale}
124-
></gl-branch-section>
119+
${when(
120+
this._overviewState.filter.stale?.show === true,
121+
() => html`
122+
<gl-branch-section
123+
label="Stale"
124+
.repo=${repository.path}
125+
.branches=${repository.branches.stale}
126+
></gl-branch-section>
127+
`,
128+
)}
125129
`;
126130
}
127131
}

0 commit comments

Comments
 (0)