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
): Promise<ServiceComputeOptions> {
const publisherTrustedAlgorithms = values.allowAllPublishedAlgorithms
? null
? []
: await createTrustedAlgorithmList(
values.publisherTrustedAlgorithms,
assetChainId,

View File

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