fake_slug hack

This commit is contained in:
Ed Chalstrey 2022-05-23 11:34:15 +01:00
parent a378f61a53
commit 1763af155e
2 changed files with 3 additions and 2 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') ?
{['date_year']: value} : {['fake_slug']: value} :
{[slug]: value} {[slug]: value}
this.doSubmit(edits); this.doSubmit(edits);

View File

@ -632,7 +632,8 @@ 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};