From dff3a243474bc488a1ba744435de0fc12948f958 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 20 Apr 2025 18:45:15 +0200 Subject: [PATCH] carnet panel --- app/carnet/page.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/carnet/page.tsx b/app/carnet/page.tsx index f276d6ef..887a07f4 100644 --- a/app/carnet/page.tsx +++ b/app/carnet/page.tsx @@ -160,13 +160,7 @@ export default function CarnetPage() { throw new Error('Failed to save note'); } - const savedNote = await response.json(); - setSelectedNote({ - ...savedNote, - content: note.content - }); - - // Refresh the notes list after successful save + // After successful save, refresh the notes list const notesResponse = await fetch(`/api/nextcloud/files?folder=${selectedFolder}`); if (notesResponse.ok) { const updatedNotes = await notesResponse.json();