Preventing premod comments from being posted optimistically.

This commit is contained in:
David Jay
2017-03-01 14:21:03 -05:00
parent f87525d0a4
commit 0085d2bb04
@@ -40,7 +40,7 @@ export const postComment = graphql(POST_COMMENT, {
updateQueries: {
AssetQuery: (oldData, {mutationResult:{data:{createComment:{comment}}}}) => {
if (oldData.asset.moderation === 'PRE') {
if (oldData.asset.settings.moderation === 'PRE') {
return oldData;
}