Fixed entity affiliate URL generator breaking if no entity URL exists, falling back on parent URL.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user