Add debug logging for presence of mentions and facepile in Webmentions component
All checks were successful
Deploy / deploy (push) Successful in 1m16s
All checks were successful
Deploy / deploy (push) Successful in 1m16s
This commit is contained in:
parent
4aa001e1e9
commit
c4e12619a1
1 changed files with 6 additions and 0 deletions
|
|
@ -34,8 +34,14 @@ function formatDate(iso?: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0;
|
const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0;
|
||||||
|
|
||||||
|
console.log(`[webmentions component] hasAny=${hasAny}`);
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<!-- DEBUG MARKER START -->
|
||||||
|
<div>DEBUG: hasAny={hasAny ? 'true' : 'false'} facepile={facepile.length} likes={likes.length}</div>
|
||||||
|
<!-- DEBUG MARKER END -->
|
||||||
|
|
||||||
{
|
{
|
||||||
hasAny && (
|
hasAny && (
|
||||||
<section class="webmentions" aria-labelledby="webmentions-heading">
|
<section class="webmentions" aria-labelledby="webmentions-heading">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue