carnet panel
This commit is contained in:
parent
144d96e153
commit
f2b42a57fa
@ -166,7 +166,7 @@ export default function CarnetPage() {
|
|||||||
content: note.content
|
content: note.content
|
||||||
});
|
});
|
||||||
|
|
||||||
// Refresh the notes list
|
// 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();
|
||||||
@ -196,11 +196,6 @@ export default function CarnetPage() {
|
|||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
setShowNotes(false);
|
setShowNotes(false);
|
||||||
}
|
}
|
||||||
// Refresh the notes list
|
|
||||||
fetch(`/api/nextcloud/files?folder=${selectedFolder}`)
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(updatedNotes => setNotes(updatedNotes))
|
|
||||||
.catch(error => console.error('Error refreshing notes:', error));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user