fix: resolve SecurityHeaders page rendering issue
Update frontend API layer to correctly unwrap backend response objects.
Backend returns wrapped responses (e.g., {profiles: [...]}) while frontend
was expecting unwrapped arrays. Fixed 6 API methods in securityHeaders.ts
to properly extract data from response wrappers.
Changes:
- listProfiles(): unwrap .profiles
- getProfile(): unwrap .profile
- createProfile(): unwrap .profile
- updateProfile(): unwrap .profile
- getPresets(): unwrap .presets
- applyPreset(): unwrap .profile
This commit is contained in:
6
.github/agents/prompt_template/bug_fix.md
vendored
6
.github/agents/prompt_template/bug_fix.md
vendored
@@ -1,4 +1,4 @@
|
||||
"I am seeing bug [X].
|
||||
I am seeing bug [X].
|
||||
|
||||
Do not propose a fix yet. First, run a Trace Analysis:
|
||||
|
||||
@@ -8,6 +8,4 @@ Read these files to understand the full data flow.
|
||||
|
||||
Tell me if there is a logic gap between how the Frontend sends data and how the Backend expects it.
|
||||
|
||||
Once you have mapped the flow, then propose the plan."
|
||||
|
||||
---
|
||||
Once you have mapped the flow, then propose the plan.
|
||||
|
||||
Reference in New Issue
Block a user