mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-28 21:02:45 +00:00
fix conditional logic
This commit is contained in:
parent
f342a2a54b
commit
15c2556e06
@ -18,11 +18,10 @@ export class FolderService {
|
||||
|
||||
getFolderStatusInOrder(observer: Subscriber<Folder>, startIndex: number) {
|
||||
// Return if there aren't any folders at the index
|
||||
if (startIndex >= (this.folders.length - 1)) {
|
||||
if (startIndex >= (this.folders.length)) {
|
||||
observer.complete();
|
||||
return;
|
||||
}
|
||||
|
||||
const folder: Folder = this.folders[startIndex];
|
||||
startIndex = startIndex + 1;
|
||||
this.dbStatusService.getFolderStatus(folder.id).subscribe(
|
||||
|
Loading…
Reference in New Issue
Block a user