diff --git a/src/app/components/media/MediaComponent.js b/src/app/components/media/MediaComponent.js index 2d415088e6..6fa1a72afa 100644 --- a/src/app/components/media/MediaComponent.js +++ b/src/app/components/media/MediaComponent.js @@ -35,6 +35,9 @@ class MediaComponent extends Component { let initialTab = 'metadata'; if (showRequests && this.props.view !== 'similarMedia') { initialTab = 'requests'; + if (this.props.projectMedia.suggested_similar_items_count > 0) { + initialTab = 'suggestedMedia'; + } } else if (this.props.view === 'similarMedia') { initialTab = 'suggestedMedia'; } @@ -268,6 +271,7 @@ export default createFragmentContainer(withPusher(MediaComponent), graphql` creator_name user_id channel + suggested_similar_items_count suggested_similar_relationships(first: 10000) { edges { node {