mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
ESLint: fix dangling commas
This commit is contained in:
@@ -15,8 +15,8 @@ import { GenericConstructor } from '../../core/shared/generic-constructor';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
animations: [
|
||||
fadeIn,
|
||||
fadeInOut
|
||||
]
|
||||
fadeInOut,
|
||||
],
|
||||
})
|
||||
/**
|
||||
* Page component for editing an item
|
||||
@@ -52,9 +52,9 @@ export class EditItemPageComponent implements OnInit {
|
||||
enabled = observableCombineLatest(child.canActivate.map((guardConstructor: GenericConstructor<CanActivate>) => {
|
||||
const guard: CanActivate = this.injector.get<CanActivate>(guardConstructor);
|
||||
return guard.canActivate(this.route.snapshot, this.router.routerState.snapshot);
|
||||
})
|
||||
}),
|
||||
).pipe(
|
||||
map((canActivateOutcomes: any[]) => canActivateOutcomes.every((e) => e === true))
|
||||
map((canActivateOutcomes: any[]) => canActivateOutcomes.every((e) => e === true)),
|
||||
);
|
||||
}
|
||||
return { page: child.path, enabled: enabled };
|
||||
|
Reference in New Issue
Block a user