diff --git a/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNParametersForm.js b/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNParametersForm.js index 5ac5244c1b..c93acd3b58 100644 --- a/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNParametersForm.js +++ b/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNParametersForm.js @@ -1,10 +1,9 @@ import {parseExpression} from 'feelin'; import {useFormikContext} from 'formik'; -import React, {useContext} from 'react'; +import React from 'react'; import {FormattedMessage} from 'react-intl'; import {useAsync} from 'react-use'; -import {FormContext} from 'components/admin/form_design/Context'; import {DMN_DECISION_DEFINITIONS_PARAMS_LIST} from 'components/admin/form_design/constants'; import {get} from 'utils/fetch'; @@ -104,7 +103,6 @@ const DMNParametersForm = () => { const { values: {pluginId, decisionDefinitionId, decisionDefinitionVersion}, } = useFormikContext(); - const {formVariables} = useContext(FormContext); const {loading, value: dmnParams = EMPTY_DMN_PARAMS} = useAsync(async () => { if (!pluginId || !decisionDefinitionId) { @@ -131,8 +129,6 @@ const DMNParametersForm = () => { }; }, [pluginId, decisionDefinitionId, decisionDefinitionVersion]); - const variablesChoices = formVariables.map(variable => [variable.key, variable.name]); - return (