stream type string or array

This commit is contained in:
zeppi 2021-08-03 14:34:48 -04:00 committed by jessopb
parent 67bcc1b1ec
commit fe35ea3764

View file

@ -319,7 +319,7 @@ function ClaimListDiscover(props: Props) {
} }
if (streamTypeParam && streamTypeParam !== CS.CONTENT_ALL && claimType !== CS.CLAIM_CHANNEL) { if (streamTypeParam && streamTypeParam !== CS.CONTENT_ALL && claimType !== CS.CLAIM_CHANNEL) {
options.stream_types = [streamTypeParam]; options.stream_types = typeof streamTypeParam === 'string' ? [streamTypeParam] : streamTypeParam;
} }
if (claimTypeParam) { if (claimTypeParam) {