diff --git a/app/components/SortFilter.tsx b/app/components/SortFilter.tsx
index 6b67929..1056d5d 100644
--- a/app/components/SortFilter.tsx
+++ b/app/components/SortFilter.tsx
@@ -346,7 +346,7 @@ export default function SortMenu() {
className="absolute right-0 flex flex-col p-4 text-right rounded-sm bg-contrast"
>
{items.map((item) => (
-
+
{() => (
) => {
if (!data?.metaDemo) {
return null;
}
- let query = `#graphql
- query MetaObjects ($type: String!, $first: Int)
- {
- metaobjects(type: $type, first: $first) {
- nodes {
- fields {
- key
- type
- value
- reference {
- ... on MediaImage {
- alt
- image {
- altText
- url
- width
- height
- }
- }
- }
- }
- handle
- id
- type
- }
- }
- }
- `;
- let {metaobjects} = await storefront.query(query, {
+ let {metaobjects} = await storefront.query(METAOBJECTS_QUERY, {
variables: {
type: data.metaDemo.type,
first: 10,