Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Oct 27, 2024
1 parent 3808978 commit 252c236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/addVotersToDiscussionPageSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type Mithril from 'mithril';
* Adds our custom {@link Voters} component to the discussion sidebar.
*/
export default function addVotersToDiscussionPageSideBar() {
extend(DiscussionPage.prototype, 'sidebarItems', function (this: DiscussionPage, items: ItemList<Mithril.Chilren>) {
extend(DiscussionPage.prototype, 'sidebarItems', function (this: DiscussionPage, items: ItemList<Mithril.Children>) {
const discussion = this.discussion;
const posts = discussion!.posts() || [];
const firstPost = posts?.[0];
Expand Down

0 comments on commit 252c236

Please sign in to comment.