Fix unexpected key types

This commit is contained in:
barsdeveloper
2023-04-03 19:12:00 +02:00
parent 3eec5b5e1c
commit 62b3968af3
6 changed files with 25 additions and 5 deletions

View File

@@ -59,8 +59,9 @@ export default class IEntity {
if (!suppressWarns) {
if (!(attributeName in attributes)) {
const typeName = value instanceof Array ? `[${value[0].constructor.name}]` : value.constructor.name
console.warn(
`UEBlueprint: Attribute ${attributeName} in the serialized data is not defined in `
`UEBlueprint: Attribute ${attributeName} (of type ${typeName}) in the serialized data is not defined in `
+ `${this.constructor.name}.attributes`
)
} else if (