Refactor entry state toggle (#48)
* chore(editorialFeatures): extract editorial features toggle * chore(refactor): rename function to make more contextual sense
This commit is contained in:
committed by
GitHub
parent
b7aff5901c
commit
1515d09dc2
3
lib/should-attach-entry-state.js
Normal file
3
lib/should-attach-entry-state.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (response) => {
|
||||
return response.locals.settings.editorialFeatures && response.locals.currentApi.id === 'cpa'
|
||||
}
|
||||
Reference in New Issue
Block a user