We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954044a commit 94d0c41Copy full SHA for 94d0c41
src/app/components/add-value-form/add-value-form.component.ts
@@ -67,14 +67,7 @@ export class AddValueFormComponent implements OnInit {
67
* @param index the index
68
*/
69
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 {
+ if (!this.isEditMode) {
78
arr.splice(index, 1);
79
}
80
0 commit comments