mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 16:34:26 +00:00
Implement workspace switching
This commit is contained in:
@@ -20,7 +20,7 @@ export const useFileList = () => {
|
||||
console.error('Failed to load file list:', error);
|
||||
setFiles([]);
|
||||
}
|
||||
}, [currentWorkspace, workspaceLoading]);
|
||||
}, [currentWorkspace]);
|
||||
|
||||
return { files, loadFileList };
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ export const useFileNavigation = () => {
|
||||
});
|
||||
}
|
||||
},
|
||||
[currentWorkspace, handleFileSelect]
|
||||
[currentWorkspace]
|
||||
);
|
||||
|
||||
return { handleLinkClick, selectedFile, isNewFile, handleFileSelect };
|
||||
|
||||
@@ -21,7 +21,7 @@ export const useFileOperations = () => {
|
||||
await handleCommitAndPush(commitMessage);
|
||||
}
|
||||
},
|
||||
[settings, handleCommitAndPush]
|
||||
[settings]
|
||||
);
|
||||
|
||||
const handleSave = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user