From 9600669c5e6fbf6eac7d04c22aca12957759b97c Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 23 May 2022 11:46:37 +0100 Subject: [PATCH] Revert "fake_slug hack" This reverts commit 1763af155e15513127ea2982d37fdf4441d6b9fb. --- app/src/frontend/building/data-container.tsx | 2 +- app/src/frontend/config/data-fields-config.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 203890dd..911e9567 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -248,7 +248,7 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine } const edits = (slug == 'current_landuse_group') ? - {['fake_slug']: value} : + {['date_year']: value} : {[slug]: value} this.doSubmit(edits); diff --git a/app/src/frontend/config/data-fields-config.ts b/app/src/frontend/config/data-fields-config.ts index ef01e74d..f808f000 100644 --- a/app/src/frontend/config/data-fields-config.ts +++ b/app/src/frontend/config/data-fields-config.ts @@ -632,8 +632,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ year_demolished: { min: 1993, max: 1994 }, lifespan: "2-5", overlap_present: "50%", links: ["", ""]} ] - }, - fake_slug: {} + } }; export const allFieldsConfig = {...dataFields, ...buildingUserFields}; \ No newline at end of file