fix prev commit properly

This commit is contained in:
Ed Chalstrey 2022-06-23 10:39:55 +01:00
parent b333351350
commit bfe519d7fe

View File

@ -82,7 +82,7 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
const newBuildingId = props.building == undefined ? undefined : props.building.building_id;
const newBuildingRevisionId = props.building == undefined ? undefined : props.building.revision_id;
const categoryKeys = {};
for (let key in categoryKeys) {
for (let key in dataFields) {
categoryKeys[key] = true;
}
if(newBuildingId !== state.currentBuildingId || newBuildingRevisionId > state.currentBuildingRevisionId) {