Fixed entity affiliate URL generator breaking if no entity URL exists, falling back on parent URL.

This commit is contained in:
2026-01-29 22:23:32 +01:00
parent 9e20af925f
commit 70049ed495
2 changed files with 33 additions and 20 deletions

View File

@@ -164,11 +164,7 @@ const scrollable = computed(() => children.value?.scrollWidth > children.value?.
const domain = routeParams.domain;
const entityUrl = (() => {
if (!entity.url) {
return null;
}
return entity.affiliateUrl || entity.url;
return entity.affiliateUrl || entity.url || null;
})();
</script>