Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh committed Jun 3, 2021
1 parent ec28338 commit 504c96c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { i18n } from '@osd/i18n';
// Applies to unresolved arguments in the AST
export default function repositionArguments(functionDef, unorderedArgs) {
const args = [];
console.log('functionDef', functionDef);

_.each(unorderedArgs, function (unorderedArg, i) {
let argDef;
Expand Down Expand Up @@ -66,9 +65,7 @@ export default function repositionArguments(functionDef, unorderedArgs) {
}
value = unorderedArg.value;
} else {
console.log('functionDef', functionDef);
argDef = functionDef.args[i];
console.log('functionDef', functionDef);
storeAsArray = argDef.multi;
targetIndex = i;
value = unorderedArg;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_timeline/server/lib/config_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class ConfigManager {
return this.opensearchShardTimeout;
}

getGraphiteUrls() {
getGraphiteAllowedUrls() {
return this.graphiteAllowedUrls;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_timeline/server/routes/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function runRoute(
settings: _.defaults(uiSettings, timelineDefaults), // Just in case they delete some setting.
getFunction,
getStartServices: core.getStartServices,
allowedGraphiteUrls: configManager.getGraphiteUrls(),
allowedGraphiteUrls: configManager.getGraphiteAllowedUrls(),
blockedGraphiteIPs: configManager.getGraphiteBlockedIPs(),
opensearchShardTimeout: configManager.getOpenSearchShardTimeout(),
savedObjectsClient: context.core.savedObjects.client,
Expand Down

0 comments on commit 504c96c

Please sign in to comment.