Skip to content

Commit

Permalink
feat(dcs): fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Casey <jonathan.casey@docusign.com>
  • Loading branch information
jonathan-casey committed Oct 3, 2023
1 parent 3c0a0c1 commit 76baa65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/concerto-core/lib/decoratormanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class DecoratorManager {
* @param {string} type the command type
* @param {*} newDecorator the decorator to add
*/
static applyDecoaratorForMapElement(element, target, declaration, type, newDecorator ) {
static applyDecoratorForMapElement(element, target, declaration, type, newDecorator ) {
const decl = element.toLowerCase() === 'key' ? declaration.key : declaration.value;
if (target.type) {
if (this.falsyOrEqual(target.type, decl.$class)) {
Expand Down Expand Up @@ -326,14 +326,14 @@ class DecoratorManager {
if (target.mapElement) {
switch(target.mapElement.toLowerCase()) {
case 'key':
this.applyDecoaratorForMapElement(target.mapElement, target, declaration, type, decorator);
this.applyDecoratorForMapElement(target.mapElement, target, declaration, type, decorator);
break;
case 'value':
this.applyDecoaratorForMapElement(target.mapElement, target, declaration, type, decorator);
this.applyDecoratorForMapElement(target.mapElement, target, declaration, type, decorator);
break;
case '*':
this.applyDecoaratorForMapElement('key', target, declaration, type, decorator);
this.applyDecoaratorForMapElement('value', target, declaration, type, decorator);
this.applyDecoratorForMapElement('key', target, declaration, type, decorator);
this.applyDecoratorForMapElement('value', target, declaration, type, decorator);

break;
default:
Expand Down

0 comments on commit 76baa65

Please sign in to comment.