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

empty array for publisherTrustedAlgorithms & publisherTrustedAlgorithmPublishers by default

* ref #1538
* ref #1539
This commit is contained in:
Matthias Kretschmann 2022-06-23 14:30:28 +01:00
parent cf254aa7c6
commit edd80eed77
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -356,7 +356,7 @@ export async function transformComputeFormToServiceComputeOptions(
cancelToken: CancelToken cancelToken: CancelToken
): Promise<ServiceComputeOptions> { ): Promise<ServiceComputeOptions> {
const publisherTrustedAlgorithms = values.allowAllPublishedAlgorithms const publisherTrustedAlgorithms = values.allowAllPublishedAlgorithms
? null ? []
: await createTrustedAlgorithmList( : await createTrustedAlgorithmList(
values.publisherTrustedAlgorithms, values.publisherTrustedAlgorithms,
assetChainId, assetChainId,

View File

@ -41,8 +41,8 @@ export const wizardSteps: StepContent[] = [
const computeOptions: ServiceComputeOptions = { const computeOptions: ServiceComputeOptions = {
allowRawAlgorithm: false, allowRawAlgorithm: false,
allowNetworkAccess: true, allowNetworkAccess: true,
publisherTrustedAlgorithmPublishers: null, publisherTrustedAlgorithmPublishers: [],
publisherTrustedAlgorithms: null publisherTrustedAlgorithms: []
} }
export const initialValues: FormPublishData = { export const initialValues: FormPublishData = {