tsc fixes and rules

This commit is contained in:
2026-02-28 01:10:14 +01:00
parent ae02080563
commit a643f24452
7 changed files with 26 additions and 13 deletions

View File

@@ -1,5 +1,4 @@
import type { TreeDataNode } from "antd";
import { cloneDeep } from "lodash";
import React from "react";
import { create } from "zustand";
import type { NodeContext } from "../components/Graph";
@@ -13,7 +12,7 @@ export interface TreeStore {
remove: (nodeId: string) => void;
}
export const useGraphLayersTreeStore = create<TreeStore>()((set, get) => ({
export const useGraphLayersTreeStore = create<TreeStore>()((set) => ({
nodesFlatById: new Map<React.Key, TreeDataNode>(),
parentIdByChildId: new Map<React.Key, string>(),
rootNodes: [],