ensure that tag names in followedTags are always lowercase
This commit is contained in:
parent
4b1438af93
commit
f56321a93f
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -4713,7 +4713,7 @@ const selectKnownTagsByName = reselect.createSelector(selectState$9, state => st
|
||||||
|
|
||||||
const selectFollowedTagsList = reselect.createSelector(selectState$9, state => state.followedTags);
|
const selectFollowedTagsList = reselect.createSelector(selectState$9, state => state.followedTags);
|
||||||
|
|
||||||
const selectFollowedTags = reselect.createSelector(selectFollowedTagsList, followedTags => followedTags.map(tag => ({ name: tag })).sort((a, b) => a.name.localeCompare(b.name)));
|
const selectFollowedTags = reselect.createSelector(selectFollowedTagsList, followedTags => followedTags.map(tag => ({ name: tag.toLowerCase() })).sort((a, b) => a.name.localeCompare(b.name)));
|
||||||
|
|
||||||
const selectUnfollowedTags = reselect.createSelector(selectKnownTagsByName, selectFollowedTagsList, (tagsByName, followedTags) => {
|
const selectUnfollowedTags = reselect.createSelector(selectKnownTagsByName, selectFollowedTagsList, (tagsByName, followedTags) => {
|
||||||
const followedTagsSet = new Set(followedTags);
|
const followedTagsSet = new Set(followedTags);
|
||||||
|
|
|
@ -16,7 +16,7 @@ export const selectFollowedTagsList = createSelector(
|
||||||
export const selectFollowedTags = createSelector(
|
export const selectFollowedTags = createSelector(
|
||||||
selectFollowedTagsList,
|
selectFollowedTagsList,
|
||||||
(followedTags: Array<string>): Array<Tag> =>
|
(followedTags: Array<string>): Array<Tag> =>
|
||||||
followedTags.map(tag => ({ name: tag })).sort((a, b) => a.name.localeCompare(b.name))
|
followedTags.map(tag => ({ name: tag.toLowerCase() })).sort((a, b) => a.name.localeCompare(b.name))
|
||||||
);
|
);
|
||||||
|
|
||||||
export const selectUnfollowedTags = createSelector(
|
export const selectUnfollowedTags = createSelector(
|
||||||
|
|
Loading…
Reference in a new issue