mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Dont await autocommit
This commit is contained in:
@@ -34,7 +34,7 @@ export const useFileOperations = () => {
|
|||||||
message: 'File saved successfully',
|
message: 'File saved successfully',
|
||||||
color: 'green',
|
color: 'green',
|
||||||
});
|
});
|
||||||
await autoCommit(filePath, 'update');
|
autoCommit(filePath, 'update');
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error saving file:', error);
|
console.error('Error saving file:', error);
|
||||||
@@ -58,7 +58,7 @@ export const useFileOperations = () => {
|
|||||||
message: 'File deleted successfully',
|
message: 'File deleted successfully',
|
||||||
color: 'green',
|
color: 'green',
|
||||||
});
|
});
|
||||||
await autoCommit(filePath, 'delete');
|
autoCommit(filePath, 'delete');
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error deleting file:', error);
|
console.error('Error deleting file:', error);
|
||||||
@@ -82,7 +82,7 @@ export const useFileOperations = () => {
|
|||||||
message: 'File created successfully',
|
message: 'File created successfully',
|
||||||
color: 'green',
|
color: 'green',
|
||||||
});
|
});
|
||||||
await autoCommit(fileName, 'create');
|
autoCommit(fileName, 'create');
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error creating new file:', error);
|
console.error('Error creating new file:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user