diff --git a/src/@utils/aquarius/index.ts b/src/@utils/aquarius/index.ts index 0a7e8409f..c2ce765c3 100644 --- a/src/@utils/aquarius/index.ts +++ b/src/@utils/aquarius/index.ts @@ -196,7 +196,7 @@ export async function getAssetsFromDids( try { const orderedDDOListByDIDList: Asset[] = [] const baseQueryparams = { - chainIds, + chainIds: chainIds || chainIdsSupported, filters: [getFilterTerm('_id', didList)], ignorePurgatory: true } as BaseQueryParams diff --git a/src/@utils/assetConvertor.ts b/src/@utils/assetConvertor.ts index e7fc52ed2..2980c3332 100644 --- a/src/@utils/assetConvertor.ts +++ b/src/@utils/assetConvertor.ts @@ -6,14 +6,10 @@ export async function transformAssetToAssetSelection( assets: Asset[], selectedAlgorithms?: PublisherTrustedAlgorithm[] ): Promise { - console.log(`assets: ${JSON.stringify(assets)}`) - console.log(`selectedAlgorithms: ${JSON.stringify(selectedAlgorithms)}`) - const extendedAssets: AssetExtended[] = await getAccessDetailsForAssets( assets ) const algorithmList: AssetSelectionAsset[] = [] - console.log(`extendedAssets: ${JSON.stringify(extendedAssets)}`) for (const asset of extendedAssets) { if (asset?.accessDetails?.price) { let selected = false diff --git a/src/@utils/compute.ts b/src/@utils/compute.ts index 1edc3452e..318e71dab 100644 --- a/src/@utils/compute.ts +++ b/src/@utils/compute.ts @@ -26,7 +26,7 @@ import { AssetSelectionAsset } from '@shared/FormInput/InputElement/AssetSelecti import { transformAssetToAssetSelection } from './assetConvertor' import { ComputeEditForm } from '../components/Asset/Edit/_types' import { getFileDidInfo } from './provider' -import { chainIdsSupported } from 'app.config' +import { chainIdsSupported } from '../../app.config' const getComputeOrders = gql` query ComputeOrders($user: String!) { @@ -340,7 +340,8 @@ export async function createTrustedAlgorithmList( const selectedAssets = await getAssetsFromDids( selectedAlgorithms, - cancelToken + cancelToken, + chainIdsSupported ) if (!selectedAssets || selectedAssets.length === 0) return [] diff --git a/src/components/Asset/Edit/FormEditComputeDataset.tsx b/src/components/Asset/Edit/FormEditComputeDataset.tsx index f380f5bf9..fc8957933 100644 --- a/src/components/Asset/Edit/FormEditComputeDataset.tsx +++ b/src/components/Asset/Edit/FormEditComputeDataset.tsx @@ -18,7 +18,7 @@ import { transformAssetToAssetSelection } from '@utils/assetConvertor' import { ComputeEditForm } from './_types' import content from '../../../../content/pages/editComputeDataset.json' import { getFieldContent } from '@utils/form' -import { chainIdsSupported } from 'app.config' +import { chainIdsSupported } from '../../../../app.config' export default function FormEditComputeDataset(): ReactElement { const { asset } = useAsset()