diff --git a/js/lib/utils/ItemList.js b/js/lib/utils/ItemList.js index 215c1c765..6e631dcf6 100644 --- a/js/lib/utils/ItemList.js +++ b/js/lib/utils/ItemList.js @@ -50,6 +50,10 @@ export default class ItemList { for (const i in this) { if (this.hasOwnProperty(i) && this[i] instanceof Item) { + if (typeof this[i].content === 'string') { + this[i].content = new String(this[i].content); + } + this[i].content.itemName = i; items.push(this[i]); this[i].key = items.length;