fix: get models in cloning

This commit is contained in:
jialin
2026-02-10 11:33:24 +08:00
parent 8779b79bbf
commit 9418e5b635
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ const ModelItem: React.FC<ModelItemProps> = ({
const generateCurrentAPIKey = (currentAPIKey: string) => {
if (
action === PageAction.EDIT &&
[PageAction.EDIT, PageAction.COPY].includes(action) &&
currentAPIKey === currentData?.api_tokens?.[0]?.hash
) {
return undefined;
@@ -21,7 +21,7 @@ const SupportedModels = () => {
const generateCurrentAPIKey = (currentAPIKey: string) => {
if (
action === PageAction.EDIT &&
[PageAction.EDIT, PageAction.COPY].includes(action) &&
currentAPIKey === currentData?.api_tokens?.[0]?.hash
) {
return undefined;