diff --git a/src/trait_manager/view/TraitView.ts b/src/trait_manager/view/TraitView.ts index 2aac44e24..2584f3271 100644 --- a/src/trait_manager/view/TraitView.ts +++ b/src/trait_manager/view/TraitView.ts @@ -48,8 +48,8 @@ export default class TraitView extends View { const { type } = model.attributes; this.config = config; this.em = config.em; - this.pfx = this.config.stylePrefix || ''; - this.ppfx = this.config.pStylePrefix || ''; + this.pfx = config.stylePrefix || ''; + this.ppfx = config.pStylePrefix || ''; this.target = target; this.className = this.pfx + 'trait'; this.clsField = `${this.ppfx}field ${this.ppfx}field-${type}`;