diff --git a/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.stories.tsx b/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.stories.tsx index ccbd8f5..4ffb9e3 100644 --- a/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.stories.tsx +++ b/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.stories.tsx @@ -14,7 +14,7 @@ const meta: Meta = { }, decorators: [ getFormProviderDecorator(), - getFeaturesAttributesContextDecorator({ purposes: ["core", "synthesis"] }), + getFeaturesAttributesContextDecorator({ purposes: ["core"] }), ], // More on argTypes: https://storybook.js.org/docs/react/api/argtypes argTypes: {}, diff --git a/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.tsx b/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.tsx index 3dd3a7c..6916b24 100644 --- a/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.tsx +++ b/src/components/FeatureAttributes/fields/FeatureAttributeLocaleField/FeatureAttributeLocaleField.tsx @@ -30,7 +30,7 @@ export const FeatureAttributeLocaleField: FC< const { fieldTextProps, purposes } = useContext(FeaturesAttributesContext); const form = useFormContext(); - if (dataType !== "formatted_date_time" || !purposes.includes("synthesis")) { + if (dataType !== "formatted_date_time" || !purposes.includes("core")) { return null; }