diff --git a/client/components/Application/Browser.tsx b/client/components/Application/Browser.tsx index 6cac59701..2872ed93c 100644 --- a/client/components/Application/Browser.tsx +++ b/client/components/Application/Browser.tsx @@ -23,7 +23,6 @@ function DefaultBrowser() { const path = store.useStore((state) => state.path) const files = store.useStore((state) => state.files) const event = store.useStore((state) => state.event) - // const selectedMultiplePaths = store.useStore((state) => state.selectedMultiplePaths) return ( - // paths.length <= 1 - // ? store.selectFile({ path: paths[0] }) - // : store.selectMultipleFiles(paths) - store.selectFile({ path }) - } + onSelect={(path) => store.selectFile({ path })} /> ) diff --git a/client/components/Parts/Trees/File.tsx b/client/components/Parts/Trees/File.tsx index 2316cfa2a..170fff990 100644 --- a/client/components/Parts/Trees/File.tsx +++ b/client/components/Parts/Trees/File.tsx @@ -16,8 +16,6 @@ export interface FileTreeProps { files: types.IFile[] event?: types.IEvent selected?: string - //selectedMultiple?: string[] - //onSelect: (paths: string[]) => void onSelect: (paths: string) => void defaultExpanded?: string[] }