Remove console.log
This commit is contained in:
parent
cc69787363
commit
705cd8a573
@ -80,7 +80,6 @@ export class DiscussionEffects {
|
||||
.patchParagraph(action.paragraphId, action.categoryId)
|
||||
.pipe(
|
||||
map((res) => {
|
||||
console.log(res);
|
||||
return updateCategorySuccess();
|
||||
})
|
||||
);
|
||||
|
@ -21,7 +21,6 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
const authRequest = request.clone({
|
||||
headers: request.headers.set('Bearer', this.token.toString()),
|
||||
});
|
||||
console.log(authRequest);
|
||||
return next.handle(authRequest);
|
||||
}
|
||||
}
|
||||
|
@ -1,31 +0,0 @@
|
||||
/* Currently not working */
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { BehaviorSubject, of } from 'rxjs';
|
||||
|
||||
@Injectable()
|
||||
export class MapIdService {
|
||||
private isMappedBS: BehaviorSubject<
|
||||
Map<number, boolean>
|
||||
> = new BehaviorSubject(new Map());
|
||||
constructor() {}
|
||||
|
||||
public initDiscussionMode(discussionId: number) {
|
||||
const map = this.isMappedBS.getValue();
|
||||
map.set(discussionId, false);
|
||||
|
||||
this.isMappedBS.next(map);
|
||||
console.log('Set mode - Done!');
|
||||
}
|
||||
|
||||
public setMode(discussionId: number, mode: boolean) {
|
||||
const map = this.isMappedBS.getValue();
|
||||
map.set(discussionId, mode);
|
||||
this.isMappedBS.next(map);
|
||||
}
|
||||
|
||||
public getMode(id: number) {
|
||||
const mapData = this.isMappedBS.getValue();
|
||||
return mapData.get(id);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user