1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Fixing imports

This commit is contained in:
Jamie Hewitt 2022-12-08 18:40:42 +03:00
parent 7f79b86b5b
commit da0083cb27
4 changed files with 5 additions and 8 deletions

View File

@ -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

View File

@ -6,14 +6,10 @@ export async function transformAssetToAssetSelection(
assets: Asset[],
selectedAlgorithms?: PublisherTrustedAlgorithm[]
): Promise<AssetSelectionAsset[]> {
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

View File

@ -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 []

View File

@ -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()