[CST-4504] lint fixes

This commit is contained in:
Rezart Vata
2021-10-19 14:12:59 +02:00
parent 78403d9696
commit 5f05c1d7c0
3 changed files with 7 additions and 8 deletions

View File

@@ -310,13 +310,13 @@ export class EditRelationshipListComponent implements OnInit, OnDestroy {
modalComp.discardEv = () => {
modalComp.toAdd.forEach((searchResult)=>{
modalComp.toAdd.forEach( (searchResult) => {
this.selectableListService.deselectSingle(this.listId,searchResult);
})
});
modalComp.toRemove.forEach((searchResult)=>{
modalComp.toRemove.forEach( (searchResult) => {
this.selectableListService.selectSingle(this.listId,searchResult);
})
});
modalComp.toAdd = [];
modalComp.toRemove = [];

View File

@@ -168,7 +168,6 @@ export class DsDynamicLookupRelationModalComponent implements OnInit, OnDestroy
}
ngOnInit(): void {
console.log(this.toRemove);
if (!!this.currentItemIsLeftItem$) {
this.currentItemIsLeftItem$.subscribe((isLeft) => {
this.isLeft = isLeft;

View File

@@ -270,9 +270,9 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
return this.getRelatedItem(uuid,resultListOfItems);
});
selectableObject = selectableObject.filter((selObject)=>{
selectableObject = selectableObject.filter( (selObject) => {
return !this.getIfInRemove(selObject.indexableObject.uuid);
})
});
if ( selectableObject.length > 0 ) {
this.selectableListService.select(this.listId, selectableObject);
@@ -298,7 +298,7 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
}
getIfInRemove(uuid: string) {
return !!this.toRemove.find((searchResult)=> searchResult.indexableObject.uuid == uuid);
return !!this.toRemove.find( (searchResult) => searchResult.indexableObject.uuid === uuid);
}
ngOnDestroy(): void {