From e8bffe9690307f2686ed5573cae2b86ee5f57789 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 18 Jan 2022 11:37:29 +0100 Subject: Remove unnecessary function --- .../src/app/shared/shared-main/custom-page/custom-page.service.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'client/src/app/shared/shared-main/custom-page') diff --git a/client/src/app/shared/shared-main/custom-page/custom-page.service.ts b/client/src/app/shared/shared-main/custom-page/custom-page.service.ts index e5c2b3cd4..2914dd6d9 100644 --- a/client/src/app/shared/shared-main/custom-page/custom-page.service.ts +++ b/client/src/app/shared/shared-main/custom-page/custom-page.service.ts @@ -1,5 +1,5 @@ import { of } from 'rxjs' -import { catchError, map } from 'rxjs/operators' +import { catchError } from 'rxjs/operators' import { HttpClient } from '@angular/common/http' import { Injectable } from '@angular/core' import { RestExtractor } from '@app/core' @@ -30,9 +30,6 @@ export class CustomPageService { updateInstanceHomepage (content: string) { return this.authHttp.put(CustomPageService.BASE_INSTANCE_HOMEPAGE_URL, { content }) - .pipe( - map(this.restExtractor.extractDataBool), - catchError(err => this.restExtractor.handleError(err)) - ) + .pipe(catchError(err => this.restExtractor.handleError(err))) } } -- cgit v1.2.3