lbry-desktop/ui
infinite-persistence 0d6cd21457
Fix ignored 'Content Type' filter (#694)
## Issue
After enabling Advanced Filter in Category Pages, the 'Content Type' filter only works for "repost/video/list".

## Root-cause
When `streamType` is not provided, it defaults to 'Video|Audio', making it always "defined":

```
streamType = SIMPLE_SITE ? [CS.FILE_VIDEO, CS.FILE_AUDIO] : undefined,
```

This seem to override the purpose of `defaultStreamType`, which will not be used unless the client explicitly set `streamType=null`, which currently is only being applied for `RECENT_FROM_FOLLOWING[]`.

```
  const streamTypeParam =
    streamType || (CS.FILE_TYPES.includes(contentTypeParam) && contentTypeParam) || defaultStreamType || null;
```
2022-01-13 22:03:04 -05:00
..
component Fix ignored 'Content Type' filter (#694) 2022-01-13 22:03:04 -05:00
constants [Playlist] Pull in sorting changes from desktop + Add Drag-n-Drop + Handle unavailable/deleted claims (#641) 2022-01-12 14:14:12 -05:00
effects Fix "you are offline" nag being stuck 2021-12-22 12:41:05 +08:00
modal Thumb: make CDN limit an env so we can change easily 2022-01-13 13:18:41 +08:00
page Fix advanced filter showing up in Wild West (#695) 2022-01-13 22:00:41 -05:00
redux Thumb: make CDN limit an env so we can change easily 2022-01-13 13:18:41 +08:00
scss [Playlist] Pull in sorting changes from desktop + Add Drag-n-Drop + Handle unavailable/deleted claims (#641) 2022-01-12 14:14:12 -05:00
util Fallback to main language (xx) when sub-language (xx-yy) is not supported. (#682) 2022-01-12 09:46:57 -05:00
analytics.js Reduce triple call to single call, improve video loading, fix embed play button being off-center (#546) 2022-01-06 14:28:27 -05:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx [oEmbed] some changes and fixes (#392) 2021-12-01 10:36:52 -05:00
lbry.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00