Commits
Giuseppe Digilio authored 04c8cb7590f
169 169 | * Retrieve bitstream's metadata |
170 170 | */ |
171 171 | ngOnChanges() { |
172 172 | if (this.availableAccessConditionOptions) { |
173 173 | // Retrieve file state |
174 174 | this.subscriptions.push( |
175 175 | this.uploadService |
176 176 | .getFileData(this.submissionId, this.sectionId, this.fileId).pipe( |
177 177 | filter((bitstream) => isNotUndefined(bitstream))) |
178 178 | .subscribe((bitstream) => { |
179 - | this.fileData = bitstream; |
180 - | } |
179 + | this.fileData = bitstream; |
180 + | } |
181 181 | ) |
182 182 | ); |
183 183 | } |
184 184 | } |
185 185 | |
186 186 | /** |
187 187 | * Initialize instance variables |
188 188 | */ |
189 189 | ngOnInit() { |
190 190 | this.formId = this.formService.getUniqueId(this.fileId); |