Skip to content

Commit

Permalink
fix: revert to paramStructure map
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Mar 19, 2019
1 parent f0f84bd commit 2a883ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/js/templated/exported-class.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class <%= className %> {
let rpcParams;
if (methodObject.paramStructure && methodObject.paramStructure === "by-name") {
rpcParams = _.zipObject(params, methodObject.params);
rpcParams = _.zipObject(params, _.map(methodObject.params, "name"));
} else {
rpcParams = Array.from(arguments);
}
Expand Down

0 comments on commit 2a883ed

Please sign in to comment.