diff --git a/src/plugins/expressions/public/plugin.ts b/src/plugins/expressions/public/plugin.ts index 2ba10be76cd92..034be58ec9e35 100644 --- a/src/plugins/expressions/public/plugin.ts +++ b/src/plugins/expressions/public/plugin.ts @@ -163,6 +163,9 @@ export class ExpressionsPublicPlugin // function that matches its definition, but which simply // calls the server-side function endpoint. Object.keys(serverFunctionList).forEach(functionName => { + if (functions.get(functionName)) { + return; + } const fn = () => ({ ...serverFunctionList[functionName], fn: (context: any, args: any) => {