Skip to content

Commit

Permalink
Merge pull request #768 from ruwiniwj/master
Browse files Browse the repository at this point in the history
Fix Top api users widget rendering
  • Loading branch information
mushiR33 authored Oct 24, 2019
2 parents d721c5a + 383360f commit b0ca3e0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ class APIMTopApiUsersWidget extends Widget {
this.resetState();
const queryParam = super.getGlobalState(queryParamKey);
const { apiCreatedBy } = queryParam;
const { providerConfig } = this.state;
const { id, widgetID: widgetName, username } = this.props;
const { providerConfig, username } = this.state;
const { id, widgetID: widgetName } = this.props;

const dataProviderConfigs = cloneDeep(providerConfig);
dataProviderConfigs.configs.config.queryData.queryName = 'apilistquery';
Expand Down Expand Up @@ -305,7 +305,6 @@ class APIMTopApiUsersWidget extends Widget {
query = 'AND apiName==\'' + apiSelected + '\''
}
dataProviderConfigs.configs.config.queryData.queryValues = {
'{{createdBy}}': timeFrom,
'{{from}}': timeFrom,
'{{to}}': timeTo,
'{{per}}': perValue,
Expand Down

0 comments on commit b0ca3e0

Please sign in to comment.