carnet panel
This commit is contained in:
parent
f2b42a57fa
commit
dff3a24347
@ -160,13 +160,7 @@ export default function CarnetPage() {
|
|||||||
throw new Error('Failed to save note');
|
throw new Error('Failed to save note');
|
||||||
}
|
}
|
||||||
|
|
||||||
const savedNote = await response.json();
|
// After successful save, refresh the notes list
|
||||||
setSelectedNote({
|
|
||||||
...savedNote,
|
|
||||||
content: note.content
|
|
||||||
});
|
|
||||||
|
|
||||||
// Refresh the notes list after successful save
|
|
||||||
const notesResponse = await fetch(`/api/nextcloud/files?folder=${selectedFolder}`);
|
const notesResponse = await fetch(`/api/nextcloud/files?folder=${selectedFolder}`);
|
||||||
if (notesResponse.ok) {
|
if (notesResponse.ok) {
|
||||||
const updatedNotes = await notesResponse.json();
|
const updatedNotes = await notesResponse.json();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user