X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fcustom-page%2Fcustom-page.service.ts;h=2914dd6d930ea8568b4a80d3aea087090ca99bf2;hb=e8bffe9690307f2686ed5573cae2b86ee5f57789;hp=e5c2b3cd480778f57e99b717cf2d26a9e155403b;hpb=cf21b2cbef61929177b9c09b5e017c3b7eb8535d;p=github%2FChocobozzz%2FPeerTube.git 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))) } }