You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(frontend): improve TeamSelector synchronization with task detail
- Add comprehensive logging for task team changes and selection state
- Wait for teams list to load before attempting synchronization
- Handle three distinct cases:
1. Task has valid team: sync if found in user's teams, otherwise keep current selection
2. Task has no team (null): clear team selection
3. No task detail: validate current selection exists in teams list
- Add proper dependency array to useEffect (include selectedTeam and setSelectedTeam)
- Prevent unnecessary re-renders by checking if team actually changed
- Only validate selected team against teams list when not viewing a task detail
- Improve edge case handling for deleted teams and access restrictions
0 commit comments