File tree Expand file tree Collapse file tree
src/app/item-page/simple/field-components/file-section Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ } }
You can’t perform that action at this time.
0 commit comments