Skip to content

Commit 4cad165

Browse files
author
Nathan
authored
Merge pull request #3774 from cloudfoundry-incubator/fix-broken-fav-reducers
Added fav reducers back
2 parents 321b9ca + d9d94eb commit 4cad165

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/frontend/packages/core/src/base-entity-types.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
import {
2+
addOrUpdateUserFavoriteMetadataReducer,
3+
deleteUserFavoriteMetadataReducer,
4+
} from '../../store/src/reducers/favorite.reducer';
15
import {
26
endpointEntitySchema,
37
STRATOS_ENDPOINT_TYPE,
8+
systemInfoEntitySchema,
49
userFavoritesEntitySchema,
510
userProfileEntitySchema,
6-
systemInfoEntitySchema,
711
} from './base-entity-schemas';
812
import { StratosCatalogueEndpointEntity, StratosCatalogueEntity } from './core/entity-catalogue/entity-catalogue-entity';
913
import { BaseEndpointAuth } from './features/endpoints/endpoint-auth';
@@ -42,6 +46,11 @@ class UserFavoriteCatalogueEntity extends StratosCatalogueEntity {
4246
schema: userFavoritesEntitySchema,
4347
type: userFavoritesEntitySchema.entityType,
4448
endpoint: stratosType,
49+
}, {
50+
dataReducers: [
51+
addOrUpdateUserFavoriteMetadataReducer,
52+
deleteUserFavoriteMetadataReducer,
53+
]
4554
});
4655
}
4756
}

0 commit comments

Comments
 (0)