fix the private access to the service variables (#8202)

* fix the private access to the service variables

* fix issues with unit tests
This commit is contained in:
Denys Vuika
2023-01-28 17:17:09 +00:00
committed by GitHub
parent b503773475
commit 2a45c1e7a3
37 changed files with 72 additions and 70 deletions

View File

@@ -29,7 +29,7 @@ export class TaskFormService {
static UNKNOWN_ERROR_MESSAGE: string = 'Unknown error';
static GENERIC_ERROR_MESSAGE: string = 'Server error';
_taskFormsApi: TaskFormsApi;
private _taskFormsApi: TaskFormsApi;
get taskFormsApi(): TaskFormsApi {
this._taskFormsApi = this._taskFormsApi ?? new TaskFormsApi(this.apiService.getInstance());
return this._taskFormsApi;