Skip to content

Commit

Permalink
fix: πŸ› parse the select preset response as text instead of json
Browse files Browse the repository at this point in the history
βœ… Closes: #202
  • Loading branch information
mdasberg committed Jan 30, 2022
1 parent ef9f5b0 commit a1bf50b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/presets/presets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class PresetsService {
* @param {SelectPresetRequest} request The request.
* @return {Observable<Object>} observable The observable.
*/
selectPreset(request: { name: string}): Observable<any> {
return this.http.put(`${this.BASE_URL}/${PRESET_URI}`, request);
selectPreset(request: { name: string }): Observable<any> {
return this.http.put(`${this.BASE_URL}/${PRESET_URI}`, request, { responseType: 'text' });
}
}

0 comments on commit a1bf50b

Please sign in to comment.