@@ -18,11 +18,10 @@ import {
1818 BitstreamFormatsRegistrySelectAction ,
1919} from '../../admin/admin-registries/bitstream-formats/bitstream-format.actions' ;
2020import { BitstreamFormatRegistryState } from '../../admin/admin-registries/bitstream-formats/bitstream-format.reducers' ;
21+ import { AppState } from '../../app.reducer' ;
2122import { NotificationsService } from '../../shared/notifications/notifications.service' ;
2223import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service' ;
2324import { ObjectCacheService } from '../cache/object-cache.service' ;
24- import { coreSelector } from '../core.selectors' ;
25- import { CoreState } from '../core-state.model' ;
2625import { Bitstream } from '../shared/bitstream.model' ;
2726import { BitstreamFormat } from '../shared/bitstream-format.model' ;
2827import { HALEndpointService } from '../shared/hal-endpoint.service' ;
@@ -46,10 +45,7 @@ import {
4645} from './request.models' ;
4746import { RequestService } from './request.service' ;
4847
49- const bitstreamFormatsStateSelector = createSelector (
50- coreSelector ,
51- ( state : CoreState ) => state . bitstreamFormats ,
52- ) ;
48+ export const bitstreamFormatsStateSelector = ( state : AppState ) => state . bitstreamFormats ;
5349const selectedBitstreamFormatSelector = createSelector (
5450 bitstreamFormatsStateSelector ,
5551 ( bitstreamFormatRegistryState : BitstreamFormatRegistryState ) => bitstreamFormatRegistryState . selectedBitstreamFormats ,
@@ -72,7 +68,7 @@ export class BitstreamFormatDataService extends IdentifiableDataService<Bitstrea
7268 protected objectCache : ObjectCacheService ,
7369 protected halService : HALEndpointService ,
7470 protected notificationsService : NotificationsService ,
75- protected store : Store < CoreState > ,
71+ protected store : Store < AppState > ,
7672 ) {
7773 super ( 'bitstreamformats' , requestService , rdbService , objectCache , halService ) ;
7874
0 commit comments