handle unusual case of Team having a non ccategory field

This commit is contained in:
Ed Chalstrey 2022-06-24 14:25:43 +01:00
parent 3320614176
commit 96df75e1cb

View File

@ -89,6 +89,9 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
if (dataFields[key].category == props.cat && fieldName != null){
categoryKeys[key] = true;
}
if (props.cat == 'team' && key == 'date_year' fieldName != null){
categoryKeys[key] = true;
}
}
if(newBuildingId !== state.currentBuildingId || newBuildingRevisionId > state.currentBuildingRevisionId) {
return {