Handle unknown fields
This commit is contained in:
parent
5e3ce365d5
commit
c84ed10af5
@ -30,7 +30,7 @@ function enrichHistoryEntries(forwardPatch: object, reversePatch: object) {
|
||||
return Object
|
||||
.entries(forwardPatch)
|
||||
.map(([key, value]) => {
|
||||
const info = dataFields[key] as DataFieldDefinition;
|
||||
const info = dataFields[key] || {} as DataFieldDefinition;
|
||||
return {
|
||||
title: info.title || `Unknown field (${key})`,
|
||||
category: info.category || Category.Unknown,
|
||||
|
Loading…
Reference in New Issue
Block a user