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.
This commit is contained in:
Oli Juhl
2025-03-27 12:38:43 +01:00
committed by GitHub
parent c870a7a1ba
commit 230cb84fa4

View File

@@ -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 () => {