Skip to content

Commit

Permalink
fix: extra check for entity schema (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya committed Jan 2, 2018
1 parent 3629ff3 commit ec11af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/push/push-to-space.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default function pushToSpace ({
// In case some entity throws an error, we null it in the list to avoid further processing.
// This functions removes the nulled entities from the lists.
function removeEmptyEntities (entityList) {
return entityList.filter((entity) => entity !== null)
return entityList.filter((entity) => !!entity && entity.sys)
}

function archiveEntities (ctx, task, entities, sourceEntities) {
Expand Down

0 comments on commit ec11af4

Please sign in to comment.