Skip to content

Commit

Permalink
remove unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdinaryJellyfish committed Nov 22, 2023
1 parent 709038c commit e7d3195
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion extensions/flags/js/src/forum/components/FlagList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default class FlagList<CustomAttrs extends IFlagListAttrs = IFlagListAttr
datetime={flag.createdAt()}
href={app.route.post(post)}
onclick={(e: MouseEvent) => {
app.flags.index = post;
e.redraw = false;
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion extensions/flags/js/src/forum/components/FlagsDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class FlagsDropdown<CustomAttrs extends IFlagsDropdownAttrs = IFl
}

getUnreadCount() {
return app.flags.cache ? app.flags.cache.length : app.forum.attribute<number>('flagCount');
return app.forum.attribute<number>('flagCount');
}

getNewCount() {
Expand Down

0 comments on commit e7d3195

Please sign in to comment.