From 6e99259d6b27646d3b7f91fc378af7bf93d0794a Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Tue, 19 Sep 2023 13:57:50 +0200 Subject: [PATCH] chore: remove contextId temporarily --- .../D2Form/FormFieldPlugin/FormFieldPlugin.container.js | 3 +-- .../components/D2Form/FormFieldPlugin/FormFieldPlugin.types.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core_modules/capture-core/components/D2Form/FormFieldPlugin/FormFieldPlugin.container.js b/src/core_modules/capture-core/components/D2Form/FormFieldPlugin/FormFieldPlugin.container.js index dad661d39c..65e4cf82e8 100644 --- a/src/core_modules/capture-core/components/D2Form/FormFieldPlugin/FormFieldPlugin.container.js +++ b/src/core_modules/capture-core/components/D2Form/FormFieldPlugin/FormFieldPlugin.container.js @@ -12,7 +12,7 @@ export const FormFieldPlugin = (props: ContainerProps) => { const { pluginSource, fieldsMetadata, formId, onUpdateField, pluginContext } = props; const metadataByPluginId = useMemo(() => Object.fromEntries(fieldsMetadata), [fieldsMetadata]); const configuredPluginIds = useMemo(() => Object.keys(metadataByPluginId), [metadataByPluginId]); - const { programId, orgUnitId } = useLocationQuery(); + const { orgUnitId } = useLocationQuery(); // Plugin related functionality and feedback const { pluginValues } = usePluginValues(formId, metadataByPluginId, pluginContext); @@ -42,7 +42,6 @@ export const FormFieldPlugin = (props: ContainerProps) => { return ( void, errors: { [id: string]: Array }, warnings: { [id: string]: Array },