diff --git a/app/javascript/vue/protocol/modals/reorderable_items_modal.vue b/app/javascript/vue/protocol/modals/reorderable_items_modal.vue index bb5e023e2..612f48608 100644 --- a/app/javascript/vue/protocol/modals/reorderable_items_modal.vue +++ b/app/javascript/vue/protocol/modals/reorderable_items_modal.vue @@ -23,8 +23,7 @@
{{ index + 1 }} - {{ item.attributes.name }} - {{ getTitle(item) }} + {{ nameWithFallbacks(item) }} {{ item.attributes.placeholder }}
@@ -80,6 +79,9 @@ $item_html.remove('table, img'); let str = $item_html.text().trim(); return str.length > 56 ? str.slice(0, 56) + "..." : str; + }, + nameWithFallbacks(item) { + return item.attributes.name || this.getTitle(item); } } }