mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Refactor workspace settings handling in tests and components to use currentWorkspace directly
This commit is contained in:
@@ -19,7 +19,7 @@ const Sidebar: React.FC<SidebarProps> = ({
|
||||
files,
|
||||
loadFileList,
|
||||
}) => {
|
||||
const { settings } = useWorkspace();
|
||||
const { currentWorkspace } = useWorkspace();
|
||||
const { handlePull } = useGitOperations();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -41,7 +41,7 @@ const Sidebar: React.FC<SidebarProps> = ({
|
||||
<FileTree
|
||||
files={files}
|
||||
handleFileSelect={handleFileSelect}
|
||||
showHiddenFiles={settings.showHiddenFiles || false}
|
||||
showHiddenFiles={currentWorkspace?.showHiddenFiles || false}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user