We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7481046 + c2bd247 commit cf2014bCopy full SHA for cf2014b
1 file changed
assets/app/js/controllers/dashboard.js
@@ -118,8 +118,11 @@ class Dashboard extends Controller {
118
this.totalFilesProgressbar.showIndeterminate();
119
this.db().sync
120
.then((db) => db.File.findOne({where: {path: this.selectedPath()}}))
121
- .then((row) => this.totalFilesScanned.text(row ? row.files_count : '0'))
122
- .then(() => this.totalFilesProgressbar.hide());
+ .then((row) => {
+ const files_count = row.type === 'directory' ? row.files_count : 1;
123
+ this.totalFilesScanned.text(files_count);
124
+ this.totalFilesProgressbar.hide();
125
+ });
126
127
// Get total unique licenses detected at a certain path
128
this.uniqueLicensesProgressbar.showIndeterminate();
0 commit comments