Skip to content

Commit a1d7c98

Browse files
committed
Fixes #4487 always use staged / unstaged headers in Inspect
1 parent 82bd646 commit a1d7c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webviews/apps/commitDetails/components/gl-details-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class GlDetailsBase extends LitElement {
152152
}
153153
}
154154

155-
if (staged.length === 0 || unstaged.length === 0) {
155+
if (staged.length === 0 && unstaged.length === 0) {
156156
children.push(...this.createFileTreeModel(mode, files, isTree, compact));
157157
} else {
158158
if (staged.length) {

0 commit comments

Comments
 (0)