Commit ebe3982
committed
Fix: Persist selected team to localStorage and restore on page refresh
- Added localStorage check in initTeam useEffect to restore previously uploaded team
- Added TeamService.storageTeam() call in handleTeamUpload to persist team selection
- Now when user refreshes the page, the uploaded team remains selected instead of reverting to 'no team selected'1 parent a452478 commit ebe3982
4 files changed
Lines changed: 15 additions & 2 deletions
File tree
- content_packs
- content_gen/agent_teams
- contract_compliance/agent_teams
- src/App/src/pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
| |||
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
| 136 | + | |
127 | 137 | | |
128 | 138 | | |
129 | 139 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments