fix: remove assetID from client queries to edit comment

This commit is contained in:
Wyatt Johnson
2018-09-11 17:07:42 -06:00
parent 7a4bf847b0
commit b1aac28eec
2 changed files with 0 additions and 10 deletions
@@ -99,7 +99,6 @@ export class CommentContainer extends Component<InnerProps, State> {
if (showEditDialog) {
return (
<EditCommentFormContainer
asset={asset}
comment={comment}
onClose={this.closeEditDialog}
/>
@@ -161,7 +160,6 @@ const enhanced = withShowAuthPopupMutation(
asset: graphql`
fragment CommentContainer_asset on Asset {
...ReplyCommentFormContainer_asset
...EditCommentFormContainer_asset
}
`,
comment: graphql`
@@ -8,7 +8,6 @@ import { BadUserInputError } from "talk-framework/lib/errors";
import { withFragmentContainer } from "talk-framework/lib/relay";
import { PropTypesOf } from "talk-framework/types";
import { EditCommentFormContainer_asset as AssetData } from "talk-stream/__generated__/EditCommentFormContainer_asset.graphql";
import { EditCommentFormContainer_comment as CommentData } from "talk-stream/__generated__/EditCommentFormContainer_comment.graphql";
import EditCommentForm, {
@@ -20,7 +19,6 @@ interface InnerProps {
editComment: EditCommentMutation;
comment: CommentData;
onClose?: () => void;
asset: AssetData;
autofocus: boolean;
}
@@ -74,7 +72,6 @@ export class EditCommentFormContainer extends Component<InnerProps, State> {
) => {
try {
await this.props.editComment({
assetID: this.props.asset.id,
commentID: this.props.comment.id,
body: input.body,
});
@@ -114,11 +111,6 @@ const enhanced = withContext(({ sessionStorage, browserInfo }) => ({
}))(
withEditCommentMutation(
withFragmentContainer<InnerProps>({
asset: graphql`
fragment EditCommentFormContainer_asset on Asset {
id
}
`,
comment: graphql`
fragment EditCommentFormContainer_comment on Comment {
id