include claim_id in channel search

This commit is contained in:
Sean Yesmunt 2019-09-19 16:32:45 -04:00
parent bc91d720e4
commit efd0ac0645

View file

@ -63,6 +63,7 @@ function ChannelPage(props: Props) {
openModal,
supportOption,
} = props;
const { channelName } = parseURI(uri);
const { search } = location;
const urlParams = new URLSearchParams(search);
@ -93,7 +94,7 @@ function ChannelPage(props: Props) {
function handleSearch() {
const fetchUrl = `${LIGHTHOUSE_URL}?s=${encodeURIComponent(searchQuery)}&channel=${encodeURIComponent(
uri.slice('lbry://'.length)
claim.permanent_url.slice('lbry://'.length)
)}`;
fetch(fetchUrl)
.then(res => res.json())