diff --git a/projects/common/element-components/compound-elements/drop-list.component.ts b/projects/common/element-components/compound-elements/drop-list.component.ts index 01f33a58fb1bc2b1186fcd81123015e9292f3bf7..6a5391e60b875577c48161abc1f8b78be2643acb 100644 --- a/projects/common/element-components/compound-elements/drop-list.component.ts +++ b/projects/common/element-components/compound-elements/drop-list.component.ts @@ -1,6 +1,8 @@ import { Component } from '@angular/core'; import { CdkDragDrop } from '@angular/cdk/drag-drop/drag-events'; -import { CdkDrag, CdkDropList, DragRef, DropListRef, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop'; +import { + CdkDrag, CdkDropList, moveItemInArray, transferArrayItem +} from '@angular/cdk/drag-drop'; import { DropListElement } from '../../models/compound-elements/drop-list'; import { FormElementComponent } from '../../form-element-component.directive'; @@ -62,7 +64,7 @@ export class DropListComponent extends FormElementComponent { this.elementFormControl.setValue(event.container.data.elementModel.options); } - onlyOneItemPredicate(drag: CdkDrag, drop: CdkDropList): boolean { - return !drop.data.elementModel.onlyOneItem || drop.data.elementModel.options.length < 1; - } + onlyOneItemPredicate = (drag: CdkDrag, drop: CdkDropList): boolean => ( + !drop.data.elementModel.onlyOneItem || drop.data.elementModel.options.length < 1 + ); }