mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Merge branch 'main' into feature/multinetwork
This commit is contained in:
commit
645041a50a
@ -21,7 +21,10 @@ export default function AlgorithmDatasetsListForCompute({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function getDatasetsAllowedForCompute() {
|
async function getDatasetsAllowedForCompute() {
|
||||||
const datasetComputeService = dataset.findServiceByType('compute')
|
const isCompute = Boolean(dataset?.findServiceByType('compute'))
|
||||||
|
const datasetComputeService = dataset.findServiceByType(
|
||||||
|
isCompute ? 'compute' : 'access'
|
||||||
|
)
|
||||||
const datasets = await getAlgorithmDatasetsForCompute(
|
const datasets = await getAlgorithmDatasetsForCompute(
|
||||||
algorithmDid,
|
algorithmDid,
|
||||||
datasetComputeService?.serviceEndpoint,
|
datasetComputeService?.serviceEndpoint,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user