Skip to content

Commit ad132ec

Browse files
authored
Merge pull request #848 from matepaiva/patch-1
Add id to getEntry return as fallback
2 parents d8ca4ed + 2ab9478 commit ad132ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/services/content-types/content-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = ({ strapi }) => ({
148148
strapi.log.error(`Could not find entry with id ${id} in ${contentType}`)
149149
}
150150

151-
return entry || {}
151+
return entry || { id }
152152
},
153153

154154
/**

0 commit comments

Comments
 (0)