Skip to content

Commit a232c87

Browse files
committed
fix(StatsView): Show stats data for single file publish.
1 parent 982d488 commit a232c87

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,16 @@ export default class InvioPlugin extends Plugin {
384384
const fState: FileOrFolderMixedState = { key: f.path, syncStatus: 'syncing' }
385385
return fState;
386386
})
387+
} else if (fileList?.length > 0) {
388+
fileList.forEach(filePath => {
389+
const file = allFiles.find(file => file.path === filePath);
390+
if (file) {
391+
remoteChangingFiles.push({
392+
key: file.path,
393+
syncStatus: 'syncing',
394+
});
395+
}
396+
})
387397
}
388398
[ ...remoteChangingFiles, ...toLocalFiles ].forEach(f => {
389399
initData[f.key] = f;

0 commit comments

Comments
 (0)