[bug fix][xs]: fix wrong sort arg in variables.

This commit is contained in:
anuveyatsu 2020-06-24 12:46:07 +06:00
parent a677e0894b
commit 11feb03a7e
2 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export const QUERY = gql`
function Recent() {
const { loading, error, data } = useQuery(QUERY, {
sort: 'sort=metadata_created%20desc',
variables: { sort: 'metadata_created desc' },
// Setting this value to true will make the component rerender when
// the "networkStatus" changes, so we are able to know if it is fetching
// more data

View File

@ -40,6 +40,9 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
await apolloClient.query({
query: QUERY,
variables: {
sort: 'metadata_created desc',
},
});
return {