From 6a386ed4650049d4f962c6d81761115483db8ef3 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Wed, 23 Feb 2022 09:51:01 +0100 Subject: [PATCH] Final resolve of duplication that is why PR reviews are nice --- app/src/api/config/dataFields.ts | 6 +----- .../frontend/building/data-containers/community.tsx | 8 ++++---- app/src/frontend/config/data-fields-config.ts | 10 ++-------- migrations/026.community_use.down.sql | 3 --- migrations/026.community_use.up.sql | 3 --- 5 files changed, 7 insertions(+), 23 deletions(-) diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index f213e11d..e51cf8bf 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -280,15 +280,11 @@ export const buildingAttributesConfig = valueType()({ /* eslint derivedEdit: true, verify: false }, - community_activities: { - edit: true, - verify: false - }, community_activities_current: { edit: true, verify: false }, - community_activities_past: { + community_activities: { edit: true, verify: false }, diff --git a/app/src/frontend/building/data-containers/community.tsx b/app/src/frontend/building/data-containers/community.tsx index c14a670d..6669476c 100644 --- a/app/src/frontend/building/data-containers/community.tsx +++ b/app/src/frontend/building/data-containers/community.tsx @@ -92,10 +92,10 @@ const CommunityView: React.FunctionComponent = (props) => { mode={props.mode} />