From e412f4094835ccbe6416af194ffa2e248a27fe83 Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Tue, 31 Jan 2023 17:08:34 +0400 Subject: [PATCH] simple logic update --- app/javascript/vue/protocol/modals/reorderable_items_modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/vue/protocol/modals/reorderable_items_modal.vue b/app/javascript/vue/protocol/modals/reorderable_items_modal.vue index 612f48608..3c572ea15 100644 --- a/app/javascript/vue/protocol/modals/reorderable_items_modal.vue +++ b/app/javascript/vue/protocol/modals/reorderable_items_modal.vue @@ -81,7 +81,7 @@ return str.length > 56 ? str.slice(0, 56) + "..." : str; }, nameWithFallbacks(item) { - return item.attributes.name || this.getTitle(item); + return this.getTitle(item) || item.attributes.name; } } }