X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d6d85de50096eb0053d58c5022fd4e949c830929..f0d3e4427d463f778beca4d3fe8330da963c9e5d:/src/store/tree-picker/tree-picker.ts diff --git a/src/store/tree-picker/tree-picker.ts b/src/store/tree-picker/tree-picker.ts index fd104fe4..259a4b8d 100644 --- a/src/store/tree-picker/tree-picker.ts +++ b/src/store/tree-picker/tree-picker.ts @@ -4,13 +4,12 @@ import { Tree } from "~/models/tree"; import { TreeItemStatus } from "~/components/tree/tree"; -import { RootState } from '~/store/store'; export type TreePicker = { [key: string]: Tree }; -export interface TreePickerNode { +export interface TreePickerNode { nodeId: string; - value: any; + value: Value; selected: boolean; collapsed: boolean; status: TreeItemStatus; @@ -23,4 +22,4 @@ export const createTreePickerNode = (data: { nodeId: string, value: any }) => ({ status: TreeItemStatus.INITIAL }); -export const getTreePicker = (id: string) => (state: TreePicker): Tree | undefined => state[id]; \ No newline at end of file +export const getTreePicker = (id: string) => (state: TreePicker): Tree> | undefined => state[id]; \ No newline at end of file