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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user