diff --git a/src/@types/aquarius/BaseQueryParams.d.ts b/src/@types/aquarius/BaseQueryParams.d.ts index 55b8b231e..32b6237ef 100644 --- a/src/@types/aquarius/BaseQueryParams.d.ts +++ b/src/@types/aquarius/BaseQueryParams.d.ts @@ -4,7 +4,7 @@ interface EsPaginationOptions { } interface BaseQueryParams { - chainIds: number[] + chainIds?: number[] // eslint-disable-next-line @typescript-eslint/no-explicit-any nestedQuery?: any esPaginationOptions?: EsPaginationOptions diff --git a/src/@utils/aquarius/index.ts b/src/@utils/aquarius/index.ts index 070037fcc..a29ce37d0 100644 --- a/src/@utils/aquarius/index.ts +++ b/src/@utils/aquarius/index.ts @@ -188,8 +188,8 @@ export async function getAssetsNames( export async function getAssetsFromDids( didList: string[], - chainIds: number[], - cancelToken: CancelToken + cancelToken: CancelToken, + chainIds?: number[] ): Promise { if (didList?.length === 0 || chainIds?.length === 0) return [] diff --git a/src/@utils/compute.ts b/src/@utils/compute.ts index 3d4de561a..348d9febb 100644 --- a/src/@utils/compute.ts +++ b/src/@utils/compute.ts @@ -328,7 +328,6 @@ export async function getComputeJobs( export async function createTrustedAlgorithmList( selectedAlgorithms: string[], // list of DIDs, - assetChainId: number, cancelToken: CancelToken ): Promise { const trustedAlgorithms: PublisherTrustedAlgorithm[] = [] @@ -340,7 +339,6 @@ export async function createTrustedAlgorithmList( const selectedAssets = await getAssetsFromDids( selectedAlgorithms, - [assetChainId], cancelToken ) @@ -369,14 +367,12 @@ export async function createTrustedAlgorithmList( export async function transformComputeFormToServiceComputeOptions( values: ComputeEditForm, currentOptions: ServiceComputeOptions, - assetChainId: number, cancelToken: CancelToken ): Promise { const publisherTrustedAlgorithms = values.allowAllPublishedAlgorithms ? null : await createTrustedAlgorithmList( values.publisherTrustedAlgorithms, - assetChainId, cancelToken ) diff --git a/src/components/Asset/Edit/DebugEditCompute.tsx b/src/components/Asset/Edit/DebugEditCompute.tsx index 14e1e13ed..4bae30ef9 100644 --- a/src/components/Asset/Edit/DebugEditCompute.tsx +++ b/src/components/Asset/Edit/DebugEditCompute.tsx @@ -21,7 +21,6 @@ export default function DebugEditCompute({ const privacy = await transformComputeFormToServiceComputeOptions( values, asset.services[0].compute, - asset.chainId, newCancelToken() ) setFormTransformed(privacy) diff --git a/src/components/Asset/Edit/EditComputeDataset.tsx b/src/components/Asset/Edit/EditComputeDataset.tsx index 0b8fd107b..18d82ffed 100644 --- a/src/components/Asset/Edit/EditComputeDataset.tsx +++ b/src/components/Asset/Edit/EditComputeDataset.tsx @@ -57,7 +57,6 @@ export default function EditComputeDataset({ await transformComputeFormToServiceComputeOptions( values, asset.services[0].compute, - asset.chainId, newCancelToken() )