Commit 708bcbc
committed
🐛 fix(settings): fixed bug preventing custom headers from being saved
The issue was that when users added or modified custom headers, the changes were only stored in the local component state but never propagated to the main configuration object that gets saved.
The fix adds a `useEffect` hook that updates the main configuration whenever the custom headers change, ensuring they're properly saved when the user clicks the "Save" button.
Now users can successfully add custom headers to their OpenAI Compatible provider configurations.
Test plan:
- Added a header confirmed it saved
- Added header, discarded changes, confirmed header is gone1 parent 6f90d4c commit 708bcbc
File tree
5 files changed
+583
-1
lines changed- .changeset
- .idea
- webview-ui/src/components/settings/providers
5 files changed
+583
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments