diff --git a/src/core/client/stream/containers/CommentContainer.tsx b/src/core/client/stream/containers/CommentContainer.tsx index 13797018c..0b2d0e578 100644 --- a/src/core/client/stream/containers/CommentContainer.tsx +++ b/src/core/client/stream/containers/CommentContainer.tsx @@ -99,7 +99,6 @@ export class CommentContainer extends Component { if (showEditDialog) { return ( @@ -161,7 +160,6 @@ const enhanced = withShowAuthPopupMutation( asset: graphql` fragment CommentContainer_asset on Asset { ...ReplyCommentFormContainer_asset - ...EditCommentFormContainer_asset } `, comment: graphql` diff --git a/src/core/client/stream/containers/EditCommentFormContainer.tsx b/src/core/client/stream/containers/EditCommentFormContainer.tsx index bdf8130b1..9dee698d3 100644 --- a/src/core/client/stream/containers/EditCommentFormContainer.tsx +++ b/src/core/client/stream/containers/EditCommentFormContainer.tsx @@ -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 { ) => { 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({ - asset: graphql` - fragment EditCommentFormContainer_asset on Asset { - id - } - `, comment: graphql` fragment EditCommentFormContainer_comment on Comment { id