This commit is contained in:
Moriz Wahl 2020-03-10 14:34:14 +01:00 committed by mattwr18
parent 4a2d250854
commit 5b5fc09053

View File

@ -50,7 +50,7 @@ const searchQuery = gql`
const nothingFound = { data: { findResources: [] } }
const addBrAfterNewlinw = array => {
const addBrAfterNewline = array => {
return array.map(obj => {
const tmp = cloneDeep(obj)
if (tmp.__typename === 'Post') {
@ -61,7 +61,7 @@ const addBrAfterNewlinw = array => {
}
const createExpectedObject = array => {
return { data: { findResources: addBrAfterNewlinw(array) } }
return { data: { findResources: addBrAfterNewline(array) } }
}
const addPostToDB = post => {