mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
if data does not exist the undefined error is avoid
This commit is contained in:
@@ -117,7 +117,7 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
|
||||
*/
|
||||
ngOnInit() {
|
||||
|
||||
this.collectionModifiable = this.route.snapshot.data.collectionModifiable ?? null;
|
||||
this.collectionModifiable = this.route.snapshot.data?.collectionModifiable ?? null;
|
||||
|
||||
this.subs.push(
|
||||
this.route.paramMap.pipe(
|
||||
|
Reference in New Issue
Block a user