From 230cb84fa47af59d326c9ac53e715a6466da04a9 Mon Sep 17 00:00:00 2001 From: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Thu, 27 Mar 2025 12:38:43 +0100 Subject: [PATCH] fix(dashboard): Product export fields (#11999) What - Remove `fields` from query to export products Why - The product export route uses the `fields` in the export request if specified. The `fields` didn't used to be part of the request, but in #11532 we accidentally started using a narrow set of fields as a result of shaving down on the requested data elsewhere in the dashboard. --- .../src/routes/products/product-export/product-export.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/admin/dashboard/src/routes/products/product-export/product-export.tsx b/packages/admin/dashboard/src/routes/products/product-export/product-export.tsx index f851191ed5..aff874abb0 100644 --- a/packages/admin/dashboard/src/routes/products/product-export/product-export.tsx +++ b/packages/admin/dashboard/src/routes/products/product-export/product-export.tsx @@ -3,7 +3,6 @@ import { RouteDrawer, useRouteModal } from "../../../components/modals" import { useTranslation } from "react-i18next" import { ExportFilters } from "./components/export-filters" import { useExportProducts } from "../../../hooks/api" -import { useProductTableQuery } from "../../../hooks/table/query" export const ProductExport = () => { const { t } = useTranslation() @@ -25,8 +24,7 @@ export const ProductExport = () => { const ProductExportContent = () => { const { t } = useTranslation() - const { searchParams } = useProductTableQuery({}) - const { mutateAsync } = useExportProducts(searchParams) + const { mutateAsync } = useExportProducts() const { handleSuccess } = useRouteModal() const handleExportRequest = async () => {