Remove console.log

This commit is contained in:
Michał Romaszkin 2021-01-17 21:07:09 +01:00
parent cc69787363
commit 705cd8a573
3 changed files with 0 additions and 33 deletions

View File

@ -80,7 +80,6 @@ export class DiscussionEffects {
.patchParagraph(action.paragraphId, action.categoryId)
.pipe(
map((res) => {
console.log(res);
return updateCategorySuccess();
})
);

View File

@ -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);
}
}

View File

@ -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);
}
}