Skip to content

Commit

Permalink
fix(dashboard): Allow admins to update default Sales Channel and Stoc…
Browse files Browse the repository at this point in the history
…k Location
  • Loading branch information
kasperkristensen committed Jan 28, 2025
1 parent ae3292c commit 1907cb7
Show file tree
Hide file tree
Showing 6 changed files with 571 additions and 1,685 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-trainers-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": patch
---

fix(dashboard): Allow admins to update default Sales Channel and Stock Location
12 changes: 6 additions & 6 deletions packages/admin/dashboard/src/hooks/api/sales-channels.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { FetchError } from "@medusajs/js-sdk"
import {
AdminSalesChannelListResponse,
AdminSalesChannelResponse,
HttpTypes,
} from "@medusajs/types"
import {
QueryKey,
UseMutationOptions,
UseQueryOptions,
useMutation,
useQuery,
} from "@tanstack/react-query"
import {
AdminSalesChannelListResponse,
AdminSalesChannelResponse,
HttpTypes,
} from "@medusajs/types"
import { sdk } from "../../lib/client"
import { queryClient } from "../../lib/query-client"
import { queryKeysFactory } from "../../lib/query-key-factory"
import { productsQueryKeys } from "./products"
import { FetchError } from "@medusajs/js-sdk"

const SALES_CHANNELS_QUERY_KEY = "sales-channels" as const
export const salesChannelsQueryKeys = queryKeysFactory(SALES_CHANNELS_QUERY_KEY)
Expand Down
Loading

0 comments on commit 1907cb7

Please sign in to comment.