diff --git a/client/src/views/Handlungsfeld.vue b/client/src/views/Handlungsfeld.vue
index cf79a3f0..39056cae 100644
--- a/client/src/views/Handlungsfeld.vue
+++ b/client/src/views/Handlungsfeld.vue
@@ -152,11 +152,16 @@ const hasMoreItems = (items: object[], maxItems: number): boolean => {
}
const getMaxDisplayItems = (items: object[], maxItems: number) => {
- return items.slice(maxItems - 1);
+ return items.slice(0, maxItems);
}
-const getMaxDisplayItemsForType = (itemType: string, subItems: object[]) => {
- return displayAsCard(itemType) ? getMaxDisplayItems(subItems, maxCardItems) : getMaxDisplayItems(subItems, maxListItems);
+const getMaxDisplayItemsForType = (itemType: string, items: object[]) => {
+ return displayAsCard(itemType) ? getMaxDisplayItems(items, maxCardItems) : getMaxDisplayItems(items, maxListItems);
+}
+
+const hasMoreItemsForType = (itemType: string, items: object[]) => {
+ const maxItems = displayAsCard(itemType) ? maxCardItems : maxListItems;
+ return hasMoreItems(items, maxItems);
}
@@ -186,7 +191,7 @@ const getMaxDisplayItemsForType = (itemType: string, subItems: object[]) => {
v-for="item in field.summary.items"
:key="item"
class="mb-2 h-10 leading-10 flex items-center">
-