From edd80eed7719f779a044e71639edbf97d3f04822 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 23 Jun 2022 14:30:28 +0100 Subject: [PATCH] empty array for `publisherTrustedAlgorithms` & `publisherTrustedAlgorithmPublishers` by default * ref #1538 * ref #1539 --- src/@utils/compute.ts | 2 +- src/components/Publish/_constants.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@utils/compute.ts b/src/@utils/compute.ts index a47caf898..b7c5e5d9f 100644 --- a/src/@utils/compute.ts +++ b/src/@utils/compute.ts @@ -356,7 +356,7 @@ export async function transformComputeFormToServiceComputeOptions( cancelToken: CancelToken ): Promise { const publisherTrustedAlgorithms = values.allowAllPublishedAlgorithms - ? null + ? [] : await createTrustedAlgorithmList( values.publisherTrustedAlgorithms, assetChainId, diff --git a/src/components/Publish/_constants.tsx b/src/components/Publish/_constants.tsx index 15460e440..5df7852b4 100644 --- a/src/components/Publish/_constants.tsx +++ b/src/components/Publish/_constants.tsx @@ -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 = {