Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jul 9, 2018
1 parent a64faed commit 6c30600
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Metadata providers

<code><pre>{{ providers$ | async | json }}</pre></code>
<code><pre>{{ providers$ | async | json }}</pre></code>
2 changes: 0 additions & 2 deletions ui/src/app/metadata/manager/manager.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ export const ManagerRoutes: Routes = [
]
}
];


2 changes: 1 addition & 1 deletion ui/src/app/metadata/provider/effect/collection.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { MetadataProviderService } from '../../domain/service/provider.service';
export class CollectionEffects {

@Effect()
loadFilters$ = this.actions$.pipe(
loadProviders$ = this.actions$.pipe(
ofType<LoadProviderRequest>(ProviderCollectionActionTypes.LOAD_PROVIDER_REQUEST),
switchMap(() =>
this.providerService
Expand Down
3 changes: 1 addition & 2 deletions ui/src/app/metadata/provider/reducer/collection.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ export const initialState: CollectionState = adapter.getInitialState({
export function reducer(state = initialState, action: ProviderCollectionActionsUnion): CollectionState {
switch (action.type) {
case ProviderCollectionActionTypes.LOAD_PROVIDER_SUCCESS: {
let s = adapter.addAll(action.payload, {
return adapter.addAll(action.payload, {
...state,
selectedProviderId: state.selectedProviderId,
loaded: true
});
return s;
}

case ProviderCollectionActionTypes.UPDATE_PROVIDER_SUCCESS: {
Expand Down

0 comments on commit 6c30600

Please sign in to comment.