Fix exception (#1979)

pull/1980/head
Thomas Kaul 2 years ago committed by GitHub
parent 7fc3fff431
commit 19e6df4fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,10 +98,6 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy, OnInit {
this.selectedActivities.emit(selectedRows.source.selected);
});
}
this.hasDuplicateActivity = this.activities.some(({ isDuplicate }) => {
return isDuplicate;
});
}
public areAllRowsSelected() {
@ -170,6 +166,12 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy, OnInit {
this.dataSource.sortingDataAccessor = get;
this.updateFilters();
this.hasDuplicateActivity = this.activities.some(({ isDuplicate }) => {
return isDuplicate;
});
} else {
this.hasDuplicateActivity = false;
}
}

Loading…
Cancel
Save