Skip to content

Commit

Permalink
chore: remove contextId temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Sep 19, 2023
1 parent eb5a4b0 commit 6e99259
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -42,7 +42,6 @@ export const FormFieldPlugin = (props: ContainerProps) => {
return (
<FormFieldPluginComponent
orgUnitId={orgUnitId}
programId={programId}
pluginSource={pluginSource}
fieldsMetadata={formattedMetadata}
values={pluginValues}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export type ComponentProps = {|
formSubmitted: boolean,
values: { [id: string]: any },
orgUnitId: string,
programId: string,
setFieldValue: (SetFieldValueProps) => void,
errors: { [id: string]: Array<string> },
warnings: { [id: string]: Array<string> },
Expand Down

0 comments on commit 6e99259

Please sign in to comment.