Browse Source

Ensures check is only for folders

main
Eric Amodio 3 years ago
parent
commit
4c7c0c1a23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/views/nodes/fileHistoryNode.ts

+ 1
- 1
src/views/nodes/fileHistoryNode.ts View File

@ -148,7 +148,7 @@ export class FileHistoryNode extends SubscribeableViewNode impl
get label() {
// Check if this is a base folder
if (this.uri.fileName === '') {
if (this.folder && this.uri.fileName === '') {
return `${paths.basename(this.uri.fsPath)}${
this.uri.sha
? ` ${this.uri.sha === GitRevision.deletedOrMissing ? this.uri.shortSha : `(${this.uri.shortSha})`}`

Loading…
Cancel
Save