Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
guergana committed Sep 20, 2024
1 parent 178ced6 commit 8f414c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 1 addition & 8 deletions client/components/Application/Browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ErrorBoundary
Expand All @@ -48,14 +47,8 @@ function DefaultBrowser() {
<FileTree
files={files}
event={event}
// selectedMultiple={selectedMultiplePaths}
selected={path}
onSelect={(path) =>
// paths.length <= 1
// ? store.selectFile({ path: paths[0] })
// : store.selectMultipleFiles(paths)
store.selectFile({ path })
}
onSelect={(path) => store.selectFile({ path })}
/>
</ErrorBoundary>
)
Expand Down
2 changes: 0 additions & 2 deletions client/components/Parts/Trees/File.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
}
Expand Down

0 comments on commit 8f414c7

Please sign in to comment.