diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index 174099af3..1b358657f 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -1200,24 +1200,14 @@ export const getFile = async (id: string) => { }; export async function getProductFilters( - { collection, make }: { collection: string; make?: string | string[] }, + { collection }: { collection: string }, filterId: string ): Promise { - const [namespace, metafieldKey] = MAKE_FILTER_ID.split('.').slice(-2); - const _make = Array.isArray(make) ? make : make ? [make] : undefined; - const res = await shopifyFetch({ query: getProductFiltersQuery, tags: [TAGS.collections, TAGS.products], variables: { - handle: collection, - ...(_make - ? { - filters: _make.map((make) => ({ - productMetafield: { namespace, key: metafieldKey, value: make } - })) - } - : {}) + handle: collection } });