fixes actor discovery

This commit is contained in:
Christian Beutel
2025-08-24 14:59:40 +02:00
parent 7596a916f8
commit a00d92e93b
2 changed files with 45 additions and 0 deletions

View File

@@ -173,6 +173,9 @@ export function createPopupFromTrail(trail: Trail) {
? emptyStateTrailLight
: emptyStateTrailDark;
const popup = new M.Popup({ maxWidth: "420px" });
if (!trail.expand?.author) {
return popup
}
// Create a container element for the popup content
const linkElement = document.createElement("a");
linkElement.href = `/map/trail/${handleFromRecordWithIRI(trail)}/${trail.id}`; // Set href safely