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.
40 KiB
40 KiB