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:
1 parent
c870a7a1ba
commit
230cb84fa4
1 file changed
+1
-3
@@ -3,7 +3,6 @@ import { RouteDrawer, useRouteModal } from "../../../components/modals"
|
|||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
import { ExportFilters } from "./components/export-filters"
|
import { ExportFilters } from "./components/export-filters"
|
||||||
import { useExportProducts } from "../../../hooks/api"
|
import { useExportProducts } from "../../../hooks/api"
|
||||||
import { useProductTableQuery } from "../../../hooks/table/query"
|
|
||||||
|
|
||||||
export const ProductExport = () => {
|
export const ProductExport = () => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
@@ -25,8 +24,7 @@ export const ProductExport = () => {
|
|||||||
|
|
||||||
const ProductExportContent = () => {
|
const ProductExportContent = () => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const { searchParams } = useProductTableQuery({})
|
const { mutateAsync } = useExportProducts()
|
||||||
const { mutateAsync } = useExportProducts(searchParams)
|
|
||||||
const { handleSuccess } = useRouteModal()
|
const { handleSuccess } = useRouteModal()
|
||||||
|
|
||||||
const handleExportRequest = async () => {
|
const handleExportRequest = async () => {
|
||||||
|
|||||||
Reference in new issue
Block a user