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

View File

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