Commit 3d5e51a
fix(seer): Fix optimistic cache update spreading wrong object into preference field
The onSuccess handler was spreading the entire SeerPreferencesResponse object
(which contains code_mapping_repos and preference) directly into the preference
field. The preference field expects ProjectSeerPreferences (repositories,
automated_run_stopping_point, automation_handoff), so this created a malformed
cache entry with a nested preference key and a misplaced code_mapping_repos field.
Fix by spreading preferencePayload.preference instead of preferencePayload.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5ccbdb6 commit 3d5e51a
File tree
1 file changed
+1
-1
lines changed- static/app/views/settings/seer/overview/utils
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
0 commit comments