Skip to content

Commit

Permalink
fix(grid): calling refreshBackendDataset was not refreshing UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Apr 10, 2018
1 parent 6996862 commit 24a061e
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class ControlAndPluginService {
grid.setTopPanelVisibility(!grid.getOptions().showTopPanel);
break;
case 'refresh-dataset':
this.refreshBackendDataset(options);
this.refreshBackendDataset();
break;
default:
alert('Command: ' + args.command);
Expand Down Expand Up @@ -411,13 +411,10 @@ export class ControlAndPluginService {
};
}

/**
* Call a refresh dataset with a BackendServiceApi
* @param gridOptions
*/
refreshBackendDataset(gridOptions: GridOption) {
/** Call a refresh dataset with a BackendServiceApi */
refreshBackendDataset() {
let query;
const backendApi = gridOptions.backendServiceApi || gridOptions.onBackendEventApi;
const backendApi = this._gridOptions.backendServiceApi || this._gridOptions.onBackendEventApi;
if (!backendApi || !backendApi.service || !backendApi.process) {
throw new Error(`BackendServiceApi requires at least a "process" function and a "service" defined`);
}
Expand Down

0 comments on commit 24a061e

Please sign in to comment.