Skip to content

Commit

Permalink
fix(backend): updateOptions can be use with partial options - TS type
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding-SE committed Feb 3, 2020
1 parent 8614caa commit 80bdaa5
Show file tree
Hide file tree
Showing 4 changed files with 364 additions and 364 deletions.
3 changes: 0 additions & 3 deletions src/app/examples/grid-odata.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ export class GridOdataComponent implements OnInit {
changeCountEnableFlag() {
this.isCountEnabled = !this.isCountEnabled;
const odataService = this.gridOptions.backendServiceApi.service;

// @ts-ignore
odataService.updateOptions({ enableCount: this.isCountEnabled } as OdataOption);
odataService.clearFilters();
this.angularGrid.filterService.clearFilters();
Expand All @@ -321,7 +319,6 @@ export class GridOdataComponent implements OnInit {
setOdataVersion(version: number) {
this.odataVersion = version;
const odataService = this.gridOptions.backendServiceApi.service;
// @ts-ignore
odataService.updateOptions({ version: this.odataVersion } as OdataOption);
odataService.clearFilters();
this.angularGrid.filterService.clearFilters();
Expand Down
Loading

0 comments on commit 80bdaa5

Please sign in to comment.