Skip to content

Commit

Permalink
don't register a wrapper if browser side function exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 10, 2020
1 parent f293143 commit b71eef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/expressions/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b71eef3

Please sign in to comment.