From 76baa659a4dd37380f8b50a4d5a6a320494f3f95 Mon Sep 17 00:00:00 2001 From: Jonathan Casey Date: Tue, 3 Oct 2023 15:48:37 +0100 Subject: [PATCH] feat(dcs): fix typo Signed-off-by: Jonathan Casey --- packages/concerto-core/lib/decoratormanager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/concerto-core/lib/decoratormanager.js b/packages/concerto-core/lib/decoratormanager.js index 63600ee14..c15b2b9f0 100644 --- a/packages/concerto-core/lib/decoratormanager.js +++ b/packages/concerto-core/lib/decoratormanager.js @@ -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)) { @@ -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: