mirror of
https://github.com/wassname/talk.git
synced 2026-10-04 13:10:23 +08:00
Preventing premod comments from being posted optimistically.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user