Skip to content

Commit cc86941

Browse files
author
Johannes Duesing
committed
Fixed bug that removed whole instance from table
1 parent 6b88427 commit cc86941

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client/src/app/dashboard/table-all/table-all.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ export class TableAllComponent implements OnInit {
125125

126126
deletedialogRef.afterClosed().subscribe(result => {
127127
if (result !== 'Cancel') {
128-
this.apiService.deleteLabel(id, label).subscribe((deleteResult: HttpEvent<number>) => {
129-
this.removeAt(i);
130-
}, err => {
128+
this.apiService.deleteLabel(id, label).subscribe((deleteResult: HttpEvent<number>) => {}, err => {
131129
console.log('error delete label', err);
132130
});
133131
}

0 commit comments

Comments
 (0)