Browse Source

template literals correction

Ignatz 7 years ago
parent
commit
838578657d

+ 1 - 1
client/components/cards/cardCustomFields.js

@@ -24,7 +24,7 @@ Template.cardCustomFieldsPopup.events({
 const CardCustomField = BlazeComponent.extendComponent({
 
   getTemplate() {
-    return 'cardCustomField-${this.data().definition.type}';
+    return `cardCustomField-${this.data().definition.type}`;
   },
 
   onCreated() {

+ 1 - 1
client/components/sidebar/sidebarCustomFields.js

@@ -29,7 +29,7 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({
     return this._types.
         map((type) => {return {
           value: type,
-          name: TAPi18n.__('custom-field-${type}'),
+          name: TAPi18n.__(`custom-field-${type}`),
           selected: type === currentType,
         };});
   },

+ 1 - 1
models/cards.js

@@ -332,7 +332,7 @@ Cards.mutations({
     const index = this.customFieldIndex(customFieldId);
     if (index > -1) {
       const update = {$set: {}};
-      update.$set['customFields.${index}.value'] = value;
+      update.$set[`customFields.${index}.value`] = value;
       return update;
     }
     // TODO