[recent datasets][xs]: only need first 3 datasets.

This commit is contained in:
anuveyatsu
2020-06-24 13:02:33 +06:00
parent 19f1d4b408
commit 5e62325c91
3 changed files with 9 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import Nav from '../components/home/Nav';
import Recent, { QUERY } from '../components/home/Recent';
import Form from '../components/search/Form';
function Home({ datapackages }) {
function Home() {
return (
<div className="container mx-auto">
<Head>
@@ -42,6 +42,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
query: QUERY,
variables: {
sort: 'metadata_created desc',
rows: 3,
},
});