From 318bc44f432e292378b7be5b5c0390a3e49ba17b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 29 Nov 2021 16:55:15 +0000 Subject: [PATCH] compute options dataflow tweak --- src/components/Publish/_utils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Publish/_utils.ts b/src/components/Publish/_utils.ts index 932611d05..544c0b241 100644 --- a/src/components/Publish/_utils.ts +++ b/src/components/Publish/_utils.ts @@ -2,10 +2,7 @@ import { mapTimeoutStringToSeconds } from '@utils/ddo' import { getEncryptedFileUrls } from '@utils/provider' import { sha256 } from 'js-sha256' import slugify from 'slugify' -import { - algorithmContainerPresets, - computeEnvironmentDefaults -} from './_constants' +import { algorithmContainerPresets } from './_constants' import { FormPublishData } from './_types' export function getFieldContent( @@ -132,7 +129,7 @@ export async function transformPublishFormToDdo( serviceEndpoint: providerUrl.url, timeout: mapTimeoutStringToSeconds(timeout), ...(access === 'compute' && { - compute: computeEnvironmentDefaults + compute: values.services[0].computeOptions }) }