Preventing premod comments from being posted optimistically.

This commit is contained in:
David Jay committed 2017-03-01 14:21:03 -05:00
1 parent f87525d0a4
commit 0085d2bb04
1 file changed
+1 -1
@@ -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;
}