From 903393953a6accd6ce52beea74e32511e66ede29 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 13 Oct 2024 16:58:54 +0200 Subject: [PATCH] Dont await autocommit --- frontend/src/hooks/useFileOperations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/hooks/useFileOperations.js b/frontend/src/hooks/useFileOperations.js index f4dda7e..a76b5b4 100644 --- a/frontend/src/hooks/useFileOperations.js +++ b/frontend/src/hooks/useFileOperations.js @@ -34,7 +34,7 @@ export const useFileOperations = () => { message: 'File saved successfully', color: 'green', }); - await autoCommit(filePath, 'update'); + autoCommit(filePath, 'update'); return true; } catch (error) { console.error('Error saving file:', error); @@ -58,7 +58,7 @@ export const useFileOperations = () => { message: 'File deleted successfully', color: 'green', }); - await autoCommit(filePath, 'delete'); + autoCommit(filePath, 'delete'); return true; } catch (error) { console.error('Error deleting file:', error); @@ -82,7 +82,7 @@ export const useFileOperations = () => { message: 'File created successfully', color: 'green', }); - await autoCommit(fileName, 'create'); + autoCommit(fileName, 'create'); return true; } catch (error) { console.error('Error creating new file:', error);