Skip to content

Commit

Permalink
don't register a wrapper if browser side function exists. (#57196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Feb 11, 2020
1 parent 2ae70d9 commit 1ffb171
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 1ffb171

Please sign in to comment.