Files
tfm_ainventory/frontend
Daniel Bedeleanu 9baa5612de fix: resolve onboarding network error by using authenticated user context
Issue: createItem was using hardcoded userId: 1 without checking if currentUser was authenticated. Backend requires Bearer token from authenticated user, not userId parameter.

Changes:
- Use currentUser.id instead of hardcoded 1
- Check currentUser exists before attempting cloud sync
- Add error handling for cloud sync failures
- Graceful fallback to local-only save if not authenticated

Resolves 'Network Error' during onboarding item creation.
2026-04-17 12:28:44 +03:00
..
2026-04-15 15:20:45 +03:00
2026-04-17 11:12:48 +03:00
2026-04-15 20:57:01 +03:00
2026-04-15 17:31:58 +03:00
2026-04-15 20:57:01 +03:00
2026-04-15 19:57:06 +03:00
2026-04-17 11:12:48 +03:00