š fix(EditChannelModal): hide empty āAPI Configā card for VolcEngine Ark/Doubao (type 45)
The VolcEngine Ark/Doubao channel now has a hard-coded base URL inside the backend, so it no longer requires any API-address settings on the front-end side. Previously, the input field was hidden but the surrounding āAPI Configā card still rendered, leaving a blank, confusing section. Changes made ⢠Added `showApiConfigCard` flag (true when `inputs.type !== 45`) right after the state declarations. ⢠Wrapped the entire āAPI Configā card in a conditional render driven by this flag. ⢠Removed the duplicate declaration of `showApiConfigCard` further down in the component to avoid shadowing and improve readability. Scope verification ⢠Checked all other channel types: every remaining type either displays a dedicated API-related input/banner (3, 8, 22, 36, 37, 40, ā¦) or falls back to the generic ācustom API addressā field. ⢠Therefore, only type 45 requires the card to be fully hidden. Result The āEdit Channelā modal now shows no empty card for the VolcEngine Ark/Doubao channel, leading to a cleaner and more intuitive UI while preserving behaviour for all other channels.
Showing
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment