Skip to content

Commit

Permalink
[CYB-201] [UI][COMPONENT] Fixed Karma Unit tests.
Browse files Browse the repository at this point in the history
* Fixed issue with loops.
  • Loading branch information
vpavlenko-cv committed Apr 1, 2024
1 parent bd3998f commit 08683de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@
}

.add-new-chain-button {
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
width: 30px;
height: 30px;
font-size: 20px;
i {
display: flex;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class IndexingFormComponent implements OnInit, OnDestroy {

ngOnInit(): void {
this.form = this._fb.group({filePath: ''});
this._store.dispatch(new GetIndexMappingsAction({filePath: this.form.value.filePath}));
this._indexMappings$.subscribe(indexMappings => {
this._store.dispatch(new GetIndexMappingsAction({filePath: indexMappings.path}));
this.form.patchValue({filePath: indexMappings.path});
this.onAdvancedEditorChanged({value: indexMappings.result});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

import { Injectable } from '@angular/core';
import {Actions, createEffect, Effect, ofType} from '@ngrx/effects';
import {Actions, createEffect, ofType} from '@ngrx/effects';
import { Action } from '@ngrx/store';
import { NzMessageService } from 'ng-zorro-antd/message';
import { Observable, of } from 'rxjs';
Expand All @@ -30,8 +30,6 @@ import {
} from './live-view.actions';
import { LiveViewConsts } from './live-view.consts';
import { LiveViewService } from './services/live-view.service';
import {editor} from "monaco-editor";
import create = editor.create;

@Injectable()
export class LiveViewEffects {
Expand Down

0 comments on commit 08683de

Please sign in to comment.