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:
Nyaru Toru
2026-02-24 21:27:48 +07:00
committed by GitHub
parent 4ea0426034
commit c8989ddead

View File

@@ -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) {