Fix hard-coded /preview/id url for remix list.

This commit is contained in:
Paul Kaplan 2018-12-11 14:46:05 -05:00
parent 594ce06b5b
commit bc99c52ebe
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ const ThumbnailColumn = props => (
<FlexRow className={classNames('thumbnail-column', props.className)}>
{props.items.map((item, key) => {
const href = `/${props.itemType}/${item.id}/`;
if (props.itemType === 'preview') {
if (props.itemType === 'projects') {
return (
<Thumbnail
avatar={thumbnailUrl(item.author.id)}

View file

@ -20,7 +20,7 @@ const RemixList = props => {
<ThumbnailColumn
cards
showAvatar
itemType="preview"
itemType="projects"
items={remixes.slice(0, 5)}
showFavorites={false}
showLoves={false}