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:
LogiFlow authored and GitHub committed 2025-11-27 21:47:40 +01:00
commit 2fdfbb4ea5
1 file changed
+3
+3
View File
@@ -255,7 +255,10 @@ const Index = () => {
const loadNotes = async () => {
try {
console.log('[DEBUG] Fetching notes from API...');
const fetchedNotes = await NotesService.getNotes();
console.log('[DEBUG] Notes fetched:', fetchedNotes.length, 'notes');
console.log('[DEBUG] Notes data:', fetchedNotes);
if (Array.isArray(fetchedNotes)) {
setNotes(fetchedNotes);
}