Fix issue where uploaded files disappear

This commit is contained in:
Giuseppe Digilio
2021-05-12 17:59:11 +02:00
parent abca095b9e
commit d3466c3e82

View File

@@ -122,7 +122,7 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
* Initialize all instance variables and retrieve form configuration
*/
ngOnChanges(changes: SimpleChanges) {
if (this.collectionId && this.submissionId) {
if ((changes.collectionId && this.collectionId) && (changes.submissionId && this.submissionId)) {
this.isActive = true;
// retrieve submission's section list