diff --git a/plugins/talk-plugin-rich-text-pell/client/index.js b/plugins/talk-plugin-rich-text-pell/client/index.js index d7e593f75..8df2113aa 100644 --- a/plugins/talk-plugin-rich-text-pell/client/index.js +++ b/plugins/talk-plugin-rich-text-pell/client/index.js @@ -1,5 +1,4 @@ import Editor from './containers/Editor'; -import update from 'immutability-helper'; import CommentContent from './containers/CommentContent'; import { gql } from 'react-apollo'; @@ -55,21 +54,12 @@ export default { const fragmentId = `Comment_${id}`; - const data = proxy.readFragment({ - fragment: editCommentFragment, - id: fragmentId, - }); - - const updated = update(data, { - richTextBody: { - $set: edit.richTextBody, - }, - }); - proxy.writeFragment({ fragment: editCommentFragment, id: fragmentId, - data: updated, + data: { + richTextBody: edit.richTextBody, + }, }); }, };