Revert "fake_slug hack"

This reverts commit 1763af155e.
This commit is contained in:
Ed Chalstrey 2022-05-23 11:46:37 +01:00
parent 1763af155e
commit 9600669c5e
2 changed files with 2 additions and 3 deletions

View File

@ -248,7 +248,7 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
} }
const edits = (slug == 'current_landuse_group') ? const edits = (slug == 'current_landuse_group') ?
{['fake_slug']: value} : {['date_year']: value} :
{[slug]: value} {[slug]: value}
this.doSubmit(edits); this.doSubmit(edits);

View File

@ -632,8 +632,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
year_demolished: { min: 1993, max: 1994 }, year_demolished: { min: 1993, max: 1994 },
lifespan: "2-5", overlap_present: "50%", links: ["", ""]} lifespan: "2-5", overlap_present: "50%", links: ["", ""]}
] ]
}, }
fake_slug: {}
}; };
export const allFieldsConfig = {...dataFields, ...buildingUserFields}; export const allFieldsConfig = {...dataFields, ...buildingUserFields};