loadUris to handle type-agnostic URIs

This commit is contained in:
James Barnsley
2021-01-17 20:55:15 +13:00
parent b0d14561fd
commit 499a4800b0
12 changed files with 253 additions and 33 deletions

View File

@ -213,7 +213,7 @@ class Discover extends React.Component {
handleURLSeeds = () => {
const {
coreActions: {
loadItems,
loadUris,
},
match: {
params: {
@ -226,7 +226,7 @@ class Discover extends React.Component {
// We'd need to do this if our URL has been encoded so the whole URL can become
// it's own URI (eg iris:discover:spotify_artist_1234) where we can't use ":"
const seeds = seedsProp.split('_').join(':').split(',');
loadItems(seeds);
loadUris(seeds);
this.setState(
{ seeds },