Skip to content

Commit

Permalink
fix linting [ci:force]
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Apr 17, 2024
1 parent 089fb50 commit 4a4c050
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { AlfrescoApiService, FormModel } from '@alfresco/adf-core';
import { Injectable } from '@angular/core';
import { EventEmitter, Injectable } from '@angular/core';
import { Observable, from } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
import { CustomModelApi } from '@alfresco/js-api';
Expand All @@ -29,6 +29,8 @@ export class EcmModelService {
public static MODEL_NAME: string = 'activitiFormsModel';
public static TYPE_MODEL: string = 'cm:folder';

error = new EventEmitter<any>();

private _customModelApi: CustomModelApi;
get customModelApi(): CustomModelApi {
this._customModelApi = this._customModelApi ?? new CustomModelApi(this.apiService.getInstance());
Expand Down Expand Up @@ -200,5 +202,7 @@ export class EcmModelService {
return res || {};
}

private handleError(_err: any): any {}
private handleError(err: any): any {
this.error.next(err);
}
}

0 comments on commit 4a4c050

Please sign in to comment.