History

fix: hide header rows when None auth is selected

Gate header row rendering on presetIndex !== -1 so they are never visible when the user selects None, regardless of leftover customHeaders state.

Rhys Sullivan committed 7 months ago

Commit 988ea9f1 parent 9dc816a1 file · +2 −2Browse files

Unified · Split

packages/plugins/openapi/src/react/AddOpenApiSource.tsx+2−2
@@ -695,8 +695,8 @@ export default function AddOpenApiSource(props: { · 694 unmodified lines
695695 </RadioGroup>
696696 )}
697697
698− {/* All headers — preset-derived and user-added */}
699− {customHeaders.length > 0 && (
698+ {/* All headers — preset-derived and user-added (hidden when None) */}
699+ {presetIndex !== -1 && customHeaders.length > 0 && (
700700 <div className="space-y-2">
701701 {customHeaders.map((ch, i) => (
702702 <CustomHeaderRow

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t