Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix types

dominik-zeglen27df30458638
diff --git a/saleor/static/dashboard-next/navigation/components/MenuItems/tree.test.ts b/saleor/static/dashboard-next/navigation/components/MenuItems/tree.test.ts
index 64fd05cdf0..992790cd42 100644
--- a/saleor/static/dashboard-next/navigation/components/MenuItems/tree.test.ts
+++ b/saleor/static/dashboard-next/navigation/components/MenuItems/tree.test.ts
@@ -2,12 +2,13 @@ import {
addNodeUnderParent,
find,
insertNode,
- removeNode
+ removeNode,
+ TreeItem
} from "react-sortable-tree";
-import { getDiff, TreeNode } from "./tree";
+import { getDiff } from "./tree";
-const originalTree: TreeNode[] = [
+const originalTree: TreeItem[] = [
{
children: [
{ children: [], expanded: true, id: "0jewelry", title: "Jewelry" },
@@ -26,7 +27,7 @@ function getNodeKey(node: any) {
}
function moveNode(
- tree: TreeNode[],
+ tree: TreeItem[],
src: string,
target: string,
asChild: boolean
@@ -68,7 +69,7 @@ function moveNode(
treeData: treeAfterRemoval
}).treeData;
- return treeAfterInsertion as TreeNode[];
+ return treeAfterInsertion as TreeItem[];
}
describe("Properly computes diffs", () => {