File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,8 @@ class SupabaseService implements DataService {
243243 console . log ( '👤 User authenticated:' , user . id ) ;
244244
245245 // Get categories and projects for proper name resolution
246- const categories = await getCachedCategories ( ) ;
247- const projects = await getCachedProjects ( ) ;
246+ const categories = await getCachedCategories ( ) || [ ] ;
247+ const projects = await getCachedProjects ( ) || [ ] ;
248248
249249 try {
250250 // Start a transaction-like approach with batch operations
@@ -444,8 +444,8 @@ class SupabaseService implements DataService {
444444 console . log ( '👤 User authenticated:' , user . id ) ;
445445
446446 // Get categories and projects for proper name resolution
447- const categories = await getCachedCategories ( ) ;
448- const projects = await getCachedProjects ( ) ;
447+ const categories = await getCachedCategories ( ) || [ ] ;
448+ const projects = await getCachedProjects ( ) || [ ] ;
449449
450450 // Validate user ID upfront
451451 if ( ! user . id ) {
You can’t perform that action at this time.
0 commit comments