Skip to content

Commit 4a9c88f

Browse files
committed
Debugging code and reverting to an earlier version.
1 parent 8cbb852 commit 4a9c88f

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

src/app/item-page/simple/field-components/file-section/file-section.component.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ export class FileSectionComponent implements OnInit {
161161
this.bitstreams$.next([...current, ...bitstreamsRD.payload.page]);
162162
this.isLoading = false;
163163
this.isLastPage = this.currentPage === bitstreamsRD.payload.totalPages;
164+
}
165+
this.isLoading = false;
166+
});
164167
// Now subscribe to license$
165168
license$.pipe(
166169
getFirstCompletedRemoteData(),
@@ -170,17 +173,17 @@ export class FileSectionComponent implements OnInit {
170173
} else if (hasValue(licenseRD.payload)) {
171174
const updated: Bitstream[] = this.bitstreams$.getValue();
172175
// For debugging.
173-
// licenseRD.payload.page.forEach(bitstream => {
174-
// console.log('Bitstream:', bitstream);
175-
// });
176+
licenseRD.payload.page.forEach(bitstream => {
177+
console.log('Bitstream:', bitstream);
178+
});
176179
this.bitstreams$.next([...updated, ...licenseRD.payload.page]);
177180
}
178181
this.isLoading = false;
179182
});
180183

181-
} else {
182-
this.isLoading = false;
183-
}
184-
});
185-
}
186-
}
184+
// } else {
185+
// this.isLoading = false;
186+
// }
187+
// });
188+
// }
189+
} }

0 commit comments

Comments
 (0)