Removed 'null' from scene tile URL if no slug is available.

This commit is contained in:
DebaucheryLibrarian 2020-10-30 17:51:47 +01:00
parent 7974be05e9
commit 3855d96135
2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,7 @@
> >
<span class="poster"> <span class="poster">
<a <a
:href="`/scene/${release.id}/${release.slug}`" :href="`/scene/${release.id}/${release.slug || ''}`"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="link" class="link"
@ -45,7 +45,7 @@
<div class="info"> <div class="info">
<a <a
:href="`/scene/${release.id}/${release.slug}`" :href="`/scene/${release.id}/${release.slug || ''}`"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="row link" class="row link"

View File

@ -15,8 +15,6 @@ function scrapeLatest(scenes, dates, site) {
} }
} }
console.log(dates, dates[index], path);
if (dates && dates[index]) { if (dates && dates[index]) {
release.date = dates[index].qu.date(null, 'MM/DD/YYYY'); release.date = dates[index].qu.date(null, 'MM/DD/YYYY');
} }