mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Fix file upload
This commit is contained in:
@@ -122,7 +122,8 @@ export const useFileOperations = (): UseFileOperationsResult => {
|
||||
if (!currentWorkspace) return false;
|
||||
|
||||
try {
|
||||
await uploadFile(currentWorkspace.name, targetPath || '', files);
|
||||
// Default to '.' (root directory) if no target path is provided
|
||||
await uploadFile(currentWorkspace.name, targetPath || '.', files);
|
||||
|
||||
notifications.show({
|
||||
title: 'Success',
|
||||
|
||||
Reference in New Issue
Block a user