|
|
|
@@ -47,6 +47,7 @@ const ResourceInfo = ({ resourceType }: ResourceInfoProps) => { |
|
|
|
const name = searchParams.get('name') || ''; |
|
|
|
const owner = searchParams.get('owner') || ''; |
|
|
|
const identifier = searchParams.get('identifier') || ''; |
|
|
|
const is_public = searchParams.get('is_public') || ''; |
|
|
|
const [versionList, setVersionList] = useState<ResourceVersionData[]>([]); |
|
|
|
const [version, setVersion] = useState<string | undefined>(undefined); |
|
|
|
const [activeTab, setActiveTab] = useState<string>(defaultTab); |
|
|
|
@@ -66,6 +67,7 @@ const ResourceInfo = ({ resourceType }: ResourceInfoProps) => { |
|
|
|
name, |
|
|
|
identifier, |
|
|
|
version, |
|
|
|
is_public: is_public === 'true', |
|
|
|
}); |
|
|
|
} |
|
|
|
}, [version]); |
|
|
|
@@ -77,6 +79,7 @@ const ResourceInfo = ({ resourceType }: ResourceInfoProps) => { |
|
|
|
id: number; |
|
|
|
identifier: string; |
|
|
|
version?: string; |
|
|
|
is_public: boolean; |
|
|
|
}) => { |
|
|
|
const request = config.getInfo; |
|
|
|
const [res] = await to(request(params)); |
|
|
|
|