mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
refactor: rename providerPart to providerIdentifier for clarity
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -631,10 +631,10 @@ function ComboFormModal({ isOpen, combo, onClose, onSave, activeProviders }) {
|
||||
const parts = modelValue.split("/");
|
||||
if (parts.length !== 2) return modelValue;
|
||||
|
||||
const [providerPart, modelId] = parts;
|
||||
const [providerIdentifier, modelId] = parts;
|
||||
// Match by node ID or prefix
|
||||
const matchedNode = providerNodes.find(
|
||||
(node) => node.id === providerPart || node.prefix === providerPart
|
||||
(node) => node.id === providerIdentifier || node.prefix === providerIdentifier
|
||||
);
|
||||
|
||||
if (matchedNode) {
|
||||
|
||||
Reference in New Issue
Block a user