Remove graphSearchTypes.ts, move OptionItem type to GraphSearch.tsx

This commit is contained in:
yangdx
2025-03-16 03:01:36 +08:00
parent 29c32955c4
commit 7d4390af96
4 changed files with 9 additions and 9 deletions

View File

@@ -70,7 +70,6 @@ interface GraphState {
sigmaInstance: any | null
allDatabaseLabels: string[]
// 搜索引擎状态
searchEngine: MiniSearch | null
moveToSelectedNode: boolean
@@ -159,7 +158,7 @@ const useGraphStoreBase = create<GraphState>()((set) => ({
focusedEdge: null,
rawGraph: null,
sigmaGraph: null, // to avoid other components from acccessing graph objects
searchEngine: null, // 重置搜索引擎
searchEngine: null,
moveToSelectedNode: false,
shouldRender: false
});