diff --git a/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.html b/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.html
index 60f5625b..e1439308 100644
--- a/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.html
+++ b/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.html
@@ -35,18 +35,20 @@
-
+ @if (topic.id) {
+
-
-
-
- menu_book
- Publikationen
-
-
-
+
+
+
+ menu_book
+ Publikationen
+
+
+
+ }
diff --git a/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.ts b/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.ts
index ecf8affe..f6e204c9 100644
--- a/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.ts
+++ b/webapp/src/app/shared/ui/app-topic-card/app-topic-card.component.ts
@@ -35,7 +35,13 @@ export class AppTopicCardComponent {
}
subtitle = computed(() => {
- return `${this.topic().subfield?.display_name} - ${this.topic().field?.display_name} - ${this.topic().domain?.display_name}`;
+ return [
+ this.topic().subfield?.display_name,
+ this.topic().field?.display_name,
+ this.topic().domain?.display_name,
+ ]
+ .filter((part) => Boolean(part))
+ .join(' - ');
});
description = computed(() => {
diff --git a/webapp/src/app/shared/ui/app-topic-tooltip/app-topic-tooltip.component.ts b/webapp/src/app/shared/ui/app-topic-tooltip/app-topic-tooltip.component.ts
index 67c6b20e..2315bad7 100644
--- a/webapp/src/app/shared/ui/app-topic-tooltip/app-topic-tooltip.component.ts
+++ b/webapp/src/app/shared/ui/app-topic-tooltip/app-topic-tooltip.component.ts
@@ -24,9 +24,12 @@ export class AppTopicTooltipComponent {
const hasCompleteMetrics = Boolean(
topicObj &&
- (topicObj.description ||
- topicObj.works_count !== undefined ||
- topicObj.cited_by_count !== undefined),
+ topicObj.description &&
+ topicObj.works_count !== undefined &&
+ topicObj.cited_by_count !== undefined &&
+ topicObj.subfield &&
+ topicObj.field &&
+ topicObj.domain,
);
if (hasCompleteMetrics && topicObj) {