Skip to content

Commit 5efd8b3

Browse files
committed
Fix get field bug
1 parent 73846f8 commit 5efd8b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/request/Entity.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ export default class Entity {
5050
}
5151

5252
get(name) {
53-
if (!this.values[name] && (this.originalValues && !this.originalValues[name])) {
53+
if (
54+
this.values[name] === undefined &&
55+
(this.originalValues && this.originalValues[name] === undefined)
56+
) {
5457
throw makeRequestError('MISSING_FIELD', { type: this.type, id: this.id, name });
5558
}
5659

0 commit comments

Comments
 (0)