mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix: free assets not displayed in c2d (#1974)
* fix: free assets not displayed in c2d * feat: remove asset list from algo c2d actions
This commit is contained in:
parent
e8d96c159e
commit
031f6eb8f1
@ -14,7 +14,7 @@ export async function transformAssetToAssetSelection(
|
|||||||
getServiceByName(asset, 'compute') || getServiceByName(asset, 'access')
|
getServiceByName(asset, 'compute') || getServiceByName(asset, 'access')
|
||||||
|
|
||||||
if (
|
if (
|
||||||
asset?.stats?.price?.value &&
|
asset?.stats?.price?.value >= 0 &&
|
||||||
algoService?.serviceEndpoint === datasetProviderEndpoint
|
algoService?.serviceEndpoint === datasetProviderEndpoint
|
||||||
) {
|
) {
|
||||||
let selected = false
|
let selected = false
|
||||||
|
@ -498,20 +498,14 @@ export default function Compute({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isUnsupportedPricing ? null : asset.metadata.type === 'algorithm' ? (
|
{isUnsupportedPricing ? null : asset.metadata.type === 'algorithm' ? (
|
||||||
<>
|
asset.services[0].type === 'compute' && (
|
||||||
{asset.services[0].type === 'compute' && (
|
|
||||||
<Alert
|
<Alert
|
||||||
text={
|
text={
|
||||||
"This algorithm has been set to private by the publisher and can't be downloaded. You can run it against any allowed datasets though!"
|
"This algorithm has been set to private by the publisher and can't be downloaded. You can run it against any allowed datasets though!"
|
||||||
}
|
}
|
||||||
state="info"
|
state="info"
|
||||||
/>
|
/>
|
||||||
)}
|
)
|
||||||
<AlgorithmDatasetsListForCompute
|
|
||||||
algorithmDid={asset.id}
|
|
||||||
asset={asset}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
) : (
|
) : (
|
||||||
<Formik
|
<Formik
|
||||||
initialValues={getInitialValues(asset, selectedAlgorithmAsset)}
|
initialValues={getInitialValues(asset, selectedAlgorithmAsset)}
|
||||||
|
Loading…
Reference in New Issue
Block a user