mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 07:08:17 +02:00
Merge pull request #131 from R0m1k3/claude/fix-notes-sync-issue-01AMeEdrKQErsM7bvhKkqEEF
debug: add logging to loadNotes function for troubleshooting
This commit is contained in:
1 file changed
+3
@@ -255,7 +255,10 @@ const Index = () => {
|
|||||||
|
|
||||||
const loadNotes = async () => {
|
const loadNotes = async () => {
|
||||||
try {
|
try {
|
||||||
|
console.log('[DEBUG] Fetching notes from API...');
|
||||||
const fetchedNotes = await NotesService.getNotes();
|
const fetchedNotes = await NotesService.getNotes();
|
||||||
|
console.log('[DEBUG] Notes fetched:', fetchedNotes.length, 'notes');
|
||||||
|
console.log('[DEBUG] Notes data:', fetchedNotes);
|
||||||
if (Array.isArray(fetchedNotes)) {
|
if (Array.isArray(fetchedNotes)) {
|
||||||
setNotes(fetchedNotes);
|
setNotes(fetchedNotes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user