diff --git a/src/parsers/fieldsParser.js b/src/parsers/fieldsParser.js index 774f2da..a4a8002 100644 --- a/src/parsers/fieldsParser.js +++ b/src/parsers/fieldsParser.js @@ -19,7 +19,8 @@ export function fieldsParser( */ function emptyModel(object) { return !!( - typeof object === 'object' + object + && typeof object === 'object' && object.hasOwnProperty('sys') && Object.keys(object).length === 1 );