Grammar fixed

This commit is contained in:
barsdeveloper
2021-10-22 18:44:44 +02:00
parent 051eed061d
commit a34be2351e
10 changed files with 188 additions and 97 deletions

View File

@@ -3,7 +3,7 @@ import Entity from "./Entity"
export default class ObjectReferenceEntity extends Entity {
static attributes = {
type: "None",
type: "",
path: ""
}
@@ -12,6 +12,10 @@ export default class ObjectReferenceEntity extends Entity {
}
toString() {
return this.type + (this.path ? `'"${this.path}"'` : "")
return (this.type ?? "") + (
this.path
? this.type ? `'"${this.path}"'` : this.path
: ""
)
}
}