From a253174f11e064f6a63f357ae60ed145c8b6bbb6 Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 29 Jul 2022 18:09:17 +0200 Subject: [PATCH] minor showing collection filters --- components/admin/Collections.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/admin/Collections.vue b/components/admin/Collections.vue index 178f6564..30d0e49e 100644 --- a/components/admin/Collections.vue +++ b/components/admin/Collections.vue @@ -152,7 +152,9 @@ export default { }, 100), collectionFilters (collection) { return collection.filters.map(f => { - return '(' + f.tags?.join(', ') + f.places?.map(p => p.name).join(', ') + ')' + const tags = f.tags?.join(', ') + const places = f.places?.map(p => p.name).join(', ') + return '(' + (tags && places ? tags + ' - ' + places : tags + places) + ')' }).join(' - ') }, async addFilter () {