diff --git a/client/src/components/organisms/ChannelTeaser.tsx b/client/src/components/organisms/ChannelTeaser.tsx index 8be4220..d36d7e9 100644 --- a/client/src/components/organisms/ChannelTeaser.tsx +++ b/client/src/components/organisms/ChannelTeaser.tsx @@ -41,21 +41,20 @@ export default class ChannelTeaser extends Component< const { ocean } = this.context const searchQuery = { - offset: 4, + offset: 2, page: 1, query: { tags: [this.channel.tag] }, sort: { - datePublished: 1 + created: -1 } } try { const search = await ocean.aquarius.queryMetadata(searchQuery) this.setState({ - // TODO: remove hacky way of getting the latest 2 assets - channelAssets: search.results.splice(2, 2, ''), + channelAssets: search.results, isLoadingChannel: false }) } catch (error) { diff --git a/client/src/components/templates/Channel.tsx b/client/src/components/templates/Channel.tsx index ee7fd69..cec5a26 100644 --- a/client/src/components/templates/Channel.tsx +++ b/client/src/components/templates/Channel.tsx @@ -63,7 +63,7 @@ export default class Channel extends PureComponent { tags: [this.channel.tag] }, sort: { - datePublished: 1 + created: -1 } } diff --git a/client/src/routes/Search.tsx b/client/src/routes/Search.tsx index ea83b0f..f370d9b 100644 --- a/client/src/routes/Search.tsx +++ b/client/src/routes/Search.tsx @@ -82,7 +82,7 @@ export default class Search extends PureComponent { ...queryValues }, sort: { - datePublished: 1 + created: -1 } }