From 2a883edb7c6ad7cdbe5531c66c58dcada8710488 Mon Sep 17 00:00:00 2001 From: shanejonas Date: Mon, 18 Mar 2019 23:11:55 -0700 Subject: [PATCH] fix: revert to paramStructure map --- templates/js/templated/exported-class.template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/js/templated/exported-class.template.ts b/templates/js/templated/exported-class.template.ts index ecd412a2..176f8efd 100644 --- a/templates/js/templated/exported-class.template.ts +++ b/templates/js/templated/exported-class.template.ts @@ -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); }