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 {
|
try {
|
||||||
const orderedDDOListByDIDList: Asset[] = []
|
const orderedDDOListByDIDList: Asset[] = []
|
||||||
const baseQueryparams = {
|
const baseQueryparams = {
|
||||||
chainIds,
|
chainIds: chainIds || chainIdsSupported,
|
||||||
filters: [getFilterTerm('_id', didList)],
|
filters: [getFilterTerm('_id', didList)],
|
||||||
ignorePurgatory: true
|
ignorePurgatory: true
|
||||||
} as BaseQueryParams
|
} as BaseQueryParams
|
||||||
|
@ -6,14 +6,10 @@ export async function transformAssetToAssetSelection(
|
|||||||
assets: Asset[],
|
assets: Asset[],
|
||||||
selectedAlgorithms?: PublisherTrustedAlgorithm[]
|
selectedAlgorithms?: PublisherTrustedAlgorithm[]
|
||||||
): Promise<AssetSelectionAsset[]> {
|
): Promise<AssetSelectionAsset[]> {
|
||||||
console.log(`assets: ${JSON.stringify(assets)}`)
|
|
||||||
console.log(`selectedAlgorithms: ${JSON.stringify(selectedAlgorithms)}`)
|
|
||||||
|
|
||||||
const extendedAssets: AssetExtended[] = await getAccessDetailsForAssets(
|
const extendedAssets: AssetExtended[] = await getAccessDetailsForAssets(
|
||||||
assets
|
assets
|
||||||
)
|
)
|
||||||
const algorithmList: AssetSelectionAsset[] = []
|
const algorithmList: AssetSelectionAsset[] = []
|
||||||
console.log(`extendedAssets: ${JSON.stringify(extendedAssets)}`)
|
|
||||||
for (const asset of extendedAssets) {
|
for (const asset of extendedAssets) {
|
||||||
if (asset?.accessDetails?.price) {
|
if (asset?.accessDetails?.price) {
|
||||||
let selected = false
|
let selected = false
|
||||||
|
@ -26,7 +26,7 @@ import { AssetSelectionAsset } from '@shared/FormInput/InputElement/AssetSelecti
|
|||||||
import { transformAssetToAssetSelection } from './assetConvertor'
|
import { transformAssetToAssetSelection } from './assetConvertor'
|
||||||
import { ComputeEditForm } from '../components/Asset/Edit/_types'
|
import { ComputeEditForm } from '../components/Asset/Edit/_types'
|
||||||
import { getFileDidInfo } from './provider'
|
import { getFileDidInfo } from './provider'
|
||||||
import { chainIdsSupported } from 'app.config'
|
import { chainIdsSupported } from '../../app.config'
|
||||||
|
|
||||||
const getComputeOrders = gql`
|
const getComputeOrders = gql`
|
||||||
query ComputeOrders($user: String!) {
|
query ComputeOrders($user: String!) {
|
||||||
@ -340,7 +340,8 @@ export async function createTrustedAlgorithmList(
|
|||||||
|
|
||||||
const selectedAssets = await getAssetsFromDids(
|
const selectedAssets = await getAssetsFromDids(
|
||||||
selectedAlgorithms,
|
selectedAlgorithms,
|
||||||
cancelToken
|
cancelToken,
|
||||||
|
chainIdsSupported
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!selectedAssets || selectedAssets.length === 0) return []
|
if (!selectedAssets || selectedAssets.length === 0) return []
|
||||||
|
@ -18,7 +18,7 @@ import { transformAssetToAssetSelection } from '@utils/assetConvertor'
|
|||||||
import { ComputeEditForm } from './_types'
|
import { ComputeEditForm } from './_types'
|
||||||
import content from '../../../../content/pages/editComputeDataset.json'
|
import content from '../../../../content/pages/editComputeDataset.json'
|
||||||
import { getFieldContent } from '@utils/form'
|
import { getFieldContent } from '@utils/form'
|
||||||
import { chainIdsSupported } from 'app.config'
|
import { chainIdsSupported } from '../../../../app.config'
|
||||||
|
|
||||||
export default function FormEditComputeDataset(): ReactElement {
|
export default function FormEditComputeDataset(): ReactElement {
|
||||||
const { asset } = useAsset()
|
const { asset } = useAsset()
|
||||||
|
Loading…
Reference in New Issue
Block a user