Skip to content

Commit d54754f

Browse files
committed
Conform to expected ngOnChanges signature; tidy up.
1 parent f466d0b commit d54754f

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

src/app/submission/sections/upload/file/section-upload-file.component.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
import { ChangeDetectorRef, Component, Input, OnChanges, OnDestroy, OnInit, ViewChild } from '@angular/core';
1+
import {
2+
ChangeDetectorRef,
3+
Component,
4+
Input,
5+
OnChanges,
6+
OnDestroy,
7+
OnInit,
8+
SimpleChanges,
9+
ViewChild
10+
} from '@angular/core';
211

312
import { BehaviorSubject, Subscription } from 'rxjs';
413
import { filter } from 'rxjs/operators';
@@ -168,13 +177,13 @@ export class SubmissionSectionUploadFileComponent implements OnChanges, OnInit,
168177
/**
169178
* Retrieve bitstream's metadata
170179
*/
171-
ngOnChanges() {
180+
ngOnChanges(changes: SimpleChanges): void {
172181
if (this.availableAccessConditionOptions) {
173182
// Retrieve file state
174183
this.subscriptions.push(
175184
this.uploadService
176-
.getFileData(this.submissionId, this.sectionId, this.fileId).pipe(
177-
filter((bitstream) => isNotUndefined(bitstream)))
185+
.getFileData(this.submissionId, this.sectionId, this.fileId)
186+
.pipe(filter((bitstream) => isNotUndefined(bitstream)))
178187
.subscribe((bitstream) => {
179188
this.fileData = bitstream;
180189
}

0 commit comments

Comments
 (0)