[bug fix][xs]: fix wrong sort arg in variables.
This commit is contained in:
@@ -24,7 +24,7 @@ export const QUERY = gql`
|
|||||||
|
|
||||||
function Recent() {
|
function Recent() {
|
||||||
const { loading, error, data } = useQuery(QUERY, {
|
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
|
// Setting this value to true will make the component rerender when
|
||||||
// the "networkStatus" changes, so we are able to know if it is fetching
|
// the "networkStatus" changes, so we are able to know if it is fetching
|
||||||
// more data
|
// more data
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||||||
|
|
||||||
await apolloClient.query({
|
await apolloClient.query({
|
||||||
query: QUERY,
|
query: QUERY,
|
||||||
|
variables: {
|
||||||
|
sort: 'metadata_created desc',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user