@csbeker/medusa-product-attributes 2.4.6 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2154,7 +2154,7 @@ const FormSchema = AdminUpdateAttributeSet;
|
|
|
2154
2154
|
const AttributeSetEditPage = () => {
|
|
2155
2155
|
const { id } = reactRouterDom.useParams();
|
|
2156
2156
|
const navigate = reactRouterDom.useNavigate();
|
|
2157
|
-
const { attributeSet
|
|
2157
|
+
const { attributeSet } = useAttributeSet(
|
|
2158
2158
|
id,
|
|
2159
2159
|
{
|
|
2160
2160
|
fields: "name, handle, description"
|
|
@@ -13,7 +13,7 @@ import { createSelectParams, createOperatorMap, createFindParams, WithAdditional
|
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
import { applyAndAndOrOperators } from "@medusajs/medusa/api/utils/common-validators/common";
|
|
15
15
|
import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, closestCenter } from "@dnd-kit/core";
|
|
16
|
-
import { sortableKeyboardCoordinates, SortableContext, verticalListSortingStrategy,
|
|
16
|
+
import { sortableKeyboardCoordinates, SortableContext, verticalListSortingStrategy, arrayMove, useSortable } from "@dnd-kit/sortable";
|
|
17
17
|
import { CSS } from "@dnd-kit/utilities";
|
|
18
18
|
import "@medusajs/admin-shared";
|
|
19
19
|
const medusaClient = new Medusa({
|
|
@@ -2151,7 +2151,7 @@ const FormSchema = AdminUpdateAttributeSet;
|
|
|
2151
2151
|
const AttributeSetEditPage = () => {
|
|
2152
2152
|
const { id } = useParams();
|
|
2153
2153
|
const navigate = useNavigate();
|
|
2154
|
-
const { attributeSet
|
|
2154
|
+
const { attributeSet } = useAttributeSet(
|
|
2155
2155
|
id,
|
|
2156
2156
|
{
|
|
2157
2157
|
fields: "name, handle, description"
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED