AW-6046 Angular improvement
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -31,10 +31,8 @@ export class SchemaService {
|
||||
Observable<{schemaJson: any, schemaLayout: any}> {
|
||||
return this.getSchema(schemaUrl).pipe(
|
||||
switchMap(
|
||||
schemaJson => this.getSchemaLayout(schemaUrl, locale)
|
||||
.pipe(catchError(err => {
|
||||
return of(undefined);
|
||||
})),
|
||||
() => this.getSchemaLayout(schemaUrl, locale)
|
||||
.pipe(catchError(() => of(undefined))),
|
||||
(schemaJson, schemaLayout) => {
|
||||
return ({schemaJson, schemaLayout});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user