Skip to content

Commit

Permalink
fix(get space): add editor interface filter for old content types
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Rötsch authored and axe312ger committed May 2, 2017
1 parent aadfdcc commit 8b0d9e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/get/get-full-source-space.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ Full error details below.
task: (ctx) => {
return getEditorInterfaces(ctx.data.contentTypes)
.then((editorInterfaces) => {
ctx.data.editorInterfaces = editorInterfaces
ctx.data.editorInterfaces = editorInterfaces.filter((editorInterface) => {
return editorInterface !== null
})
})
},
skip: (ctx) => skipContentModel || (ctx.data.contentTypes.length === 0 && 'Skipped since no content types downloaded')
Expand Down

0 comments on commit 8b0d9e2

Please sign in to comment.