Skip to content

Commit

Permalink
AUTOMATION: FIX: do not output non existing descriptions (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Sep 11, 2023
1 parent 3b32d82 commit 169e1e5
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -7,7 +7,6 @@ export default class AutomationField extends Component {
field = null;
automation = null;
saveAutomation = null;
tagName = "";

@computed("automation.trigger.id", "field.triggerable")
get displayField() {
Expand All @@ -33,8 +32,8 @@ export default class AutomationField extends Component {
return `discourse_automation${this.target}fields.${this.field.name}.description`;
}

@computed("target", "field.name")
@computed("translationKey")
get description() {
return I18n.t(this.translationKey);
return I18n.lookup(this.translationKey);
}
}

0 comments on commit 169e1e5

Please sign in to comment.