mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
Prevent error from unexpected attribute
This commit is contained in:
@@ -105,7 +105,7 @@ export default class Utility {
|
||||
keys,
|
||||
attribute = Utility.objectGet(/** @type {EntityConstructor} */(entity.constructor).attributes, keys)
|
||||
) {
|
||||
if (attribute.constructor === Object) {
|
||||
if (attribute?.constructor === Object) {
|
||||
return /** @type {TypeInformation} */(attribute).serialized
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user