Skip to content

Commit 81055ef

Browse files
author
ashariyar
committed
Bump package.json version to v0.56.3
1 parent ed2d619 commit 81055ef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* New BoleanFilter method `optionsAsTagList()`
33
* Lower staleness duration for server side filters to four hours
44
* Don't alias `Logger` to `ComponentLogger` when exporting
5+
* (Demo App) Use new `MinTootsSlider` component to control the number of trending objects in the list
56

67
### v0.56.1 - v0.56.3
78
* Use `Logger`s instead of `logPrefix` args everywhere

src/filters/boolean_filter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ export default class BooleanFilter extends TootFilter {
155155
return Object.keys(this.optionInfo).length;
156156
}
157157

158+
// Convert the optionInfo to a TagList with the counts as numToots
158159
optionsAsTagList(): TagList {
159-
// Convert the optionInfo to a TagList with the counts as numToots
160-
const tags: TagWithUsageCounts[] = Object.entries(this.optionInfo).map(([name, count]) => ({
160+
const tags: TagWithUsageCounts[] = Object.entries(this.optionInfo).map(([name, numToots]) => ({
161161
name,
162-
numToots: count,
162+
numToots,
163163
regex: wordRegex(name), // Create a regex for the tag name
164164
url: MastoApi.instance.tagUrl(name),
165165
}));

0 commit comments

Comments
 (0)