Optionally chaining user abilities until everyone's logged out and back in.
This commit is contained in:
parent
030d6dc835
commit
5496bced59
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
|
||||
<Link
|
||||
:href="user?.abilities.some((ability) => ability.plainUrls) ? scene.url : scene.watchUrl"
|
||||
:href="user?.abilities?.some((ability) => ability.plainUrls) ? scene.url : scene.watchUrl"
|
||||
:title="scene.date ? format(scene.date.toISOString(), 'y-MM-dd hh:mm') : `Release date unknown, added ${format(scene.createdAt, 'y-MM-dd')}`"
|
||||
target="_blank"
|
||||
class="date-link nolink"
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
</div>
|
||||
|
||||
<Link
|
||||
:href="user?.abilities.some((ability) => ability.plainUrls) ? scene.url : scene.watchUrl"
|
||||
:href="user?.abilities?.some((ability) => ability.plainUrls) ? scene.url : scene.watchUrl"
|
||||
:title="scene.date ? formatDate(scene.date.toISOString(), 'y-MM-dd hh:mm') : `Release date unknown, added ${formatDate(scene.createdAt, 'y-MM-dd')}`"
|
||||
target="_blank"
|
||||
class="date nolink"
|
||||
|
|
|
|||
Loading…
Reference in New Issue