fix: get models in cloning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user