Skip to content

Commit e44f9e8

Browse files
Woops, used the wrong operator, we want to make sure it HAS a data property
1 parent d1c85c9 commit e44f9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/utils/serialize-and-push.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function isValidResponse(doc: any): doc is DocWithData {
1515
console.debug("Received a repsonse that doesn't have a /jsonapi/version property")
1616

1717
// Don't even bother if the data propery doesn't exist
18-
return typeof response.data === 'undefined';
18+
return typeof response.data !== 'undefined';
1919
}
2020

2121
export default function serializeAndPush(this: Model, response: any) {

0 commit comments

Comments
 (0)