Skip to content

Commit

Permalink
Fix potential undefined accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Feb 12, 2021
1 parent 094dfe3 commit 20824a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class CtznUser extends LitElement {
<div class="max-w-4xl mx-auto grid grid-cols-layout-twocol gap-8">
<div>
<h3 class="text-lg mb-4 font-semibold">Following ${this.following?.length} ${pluralize(this.following?.length, 'Citizen')}</h3>
<ctzn-user-list .ids=${this.following.map(f => f.value.subject.userId)}></ctzn-user-list>
<ctzn-user-list .ids=${this.following?.map(f => f.value.subject.userId)}></ctzn-user-list>
</div>
${this.renderRightSidebar()}
</div>
Expand All @@ -289,7 +289,7 @@ class CtznUser extends LitElement {
<div class="max-w-4xl mx-auto grid grid-cols-layout-twocol gap-8">
<div>
<h3 class="text-lg mb-4 font-semibold">${this.members?.length} ${pluralize(this.members?.length, 'Member')}</h3>
<ctzn-user-list .ids=${this.members.map(f => f.value.user.userId)}></ctzn-user-list>
<ctzn-user-list .ids=${this.members?.map(f => f.value.user.userId)}></ctzn-user-list>
</div>
${this.renderRightSidebar()}
</div>
Expand Down

1 comment on commit 20824a3

@vercel
Copy link

@vercel vercel bot commented on 20824a3 Feb 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.