Skip to content

Commit

Permalink
chore(dotcms-ui): remove mocks #30249
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Oct 5, 2024
1 parent 6353ca6 commit 6ff87a8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { inject, Injectable } from '@angular/core';

import { catchError, map } from 'rxjs/operators';

import { MOCK_STYLE_CLASSES_FILE } from '../../../utils/mocks';

export const STYLE_CLASSES_FILE_URL = '/application/templates/classes.json';

@Injectable()
Expand All @@ -16,7 +14,7 @@ export class JsonClassesService {
getClasses(): Observable<string[]> {
return this.#http.get<{ classes: string[] }>(STYLE_CLASSES_FILE_URL).pipe(
map((res) => res.classes),
catchError(() => of(MOCK_STYLE_CLASSES_FILE.classes))
catchError(() => of([]))
);
}
}

0 comments on commit 6ff87a8

Please sign in to comment.