mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Fixing imports
This commit is contained in:
parent
7f79b86b5b
commit
da0083cb27
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 []
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user