Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-newey committed Oct 13, 2023
1 parent a8904a7 commit b60dd4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"typescript.tsdk": "node_modules\\typescript\\lib",
"cSpell.words": [
"Datatable",
"datatable",
"luxon",
"toastr",
"typeahead",
"Ecoacoustics"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe("ListComponent", () => {
});

// if this test if failing, it is either because the harvest api is not called, or called twice (or more)
// either in the harvest list page is faulty or our datatable pagnation directive is faulty
// either in the harvest list page is faulty or our datatable pagination directive is faulty
it("should call the harvest api once on load", () => {
const harvestApi = setup(defaultProject, defaultHarvest);
expect(harvestApi.filter).toHaveBeenCalledTimes(1);
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/harvest/pages/list/list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ListComponent extends PageComponent implements OnInit {
public ngOnInit(): void {
this.project = this.route.snapshot.data[projectKey].model;
this.canCreateHarvestCapability = this.project.can("createHarvest").can;
// A BehaviorSubject is need on fitlers$ to update the ngx-datatable harvest list & models
// A BehaviorSubject is need on filters$ to update the ngx-datatable harvest list & models
// The this.filters$ is triggered in abortUpload()
this.filters$ = new BehaviorSubject({
sorting: {
Expand Down

0 comments on commit b60dd4f

Please sign in to comment.