mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-18 19:47:32 +08:00
Fixing various bugs in the grammar
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import SubAttributesDeclaration from "./entity/SubObject.js"
|
||||
import UnionType from "./entity/UnionType.js"
|
||||
|
||||
/**
|
||||
@@ -140,9 +139,6 @@ export default class Utility {
|
||||
if (!(keys instanceof Array)) {
|
||||
throw new TypeError("UEBlueprint: Expected keys to be an array")
|
||||
}
|
||||
if (target instanceof SubAttributesDeclaration) {
|
||||
target = target.attributes
|
||||
}
|
||||
if (keys.length == 0 || !(keys[0] in target) || target[keys[0]] === undefined) {
|
||||
return defaultValue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user