Skip to content

Commit

Permalink
SHIBUI Fixed issue with removing draft sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Feb 28, 2019
1 parent 58117bd commit e59ffe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/src/app/metadata/domain/service/draft.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class EntityDraftService {
}

find(id: string, attr: string = 'id'): Observable<MetadataResolver> {
console.log(id);
if (!id) {
return throwError(404);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class DraftCollectionEffects {
removeDraft$ = this.actions$.pipe(
ofType<actions.RemoveDraftRequest>(DraftActionTypes.REMOVE_DRAFT),
map(getPayload),
switchMap(provider => this.draftService.find(provider.entityId, 'entityId').pipe(
switchMap(provider => this.draftService.find(provider.id, 'id').pipe(
switchMap(selected => this.draftService.remove(selected)),
map(p => new actions.RemoveDraftSuccess(p))
)
Expand Down

0 comments on commit e59ffe2

Please sign in to comment.