Skip to content

Commit 94d0c41

Browse files
committed
removed unused code
1 parent 954044a commit 94d0c41

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/app/components/add-value-form/add-value-form.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,7 @@ export class AddValueFormComponent implements OnInit {
6767
* @param index the index
6868
*/
6969
onRemoveItem(arr, index) {
70-
if (this.isEditMode) {
71-
this.onValueDelete.emit({
72-
element: arr[index],
73-
callback: () => {
74-
arr.splice(index, 1);
75-
}
76-
});
77-
} else {
70+
if (!this.isEditMode) {
7871
arr.splice(index, 1);
7972
}
8073
}

0 commit comments

Comments
 (0)