diff --git a/wax-prosemirror-services/src/NoteService/Editor.js b/wax-prosemirror-services/src/NoteService/Editor.js index 12cd2c22f49e6ca6beb83856f2398b9c4d94bd63..4edbe71139ccc7d88fb9ecf5b1df5da7ae270a49 100644 --- a/wax-prosemirror-services/src/NoteService/Editor.js +++ b/wax-prosemirror-services/src/NoteService/Editor.js @@ -63,7 +63,7 @@ export default ({ node, view }) => { ); const tr = TrackChange.enabled - ? trackedTransaction(transaction, noteView.state, user) + ? trackedTransaction(transaction, noteView.state, user, 'notes') : transaction; const { state, transactions } = noteView.state.applyTransaction(tr); diff --git a/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js b/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js index ff0902f65c33988803dade2c73577acd43926349..b8a6f071aa8adc12d2ea32ed8c2adca87fb91d30 100644 --- a/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js +++ b/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js @@ -13,7 +13,7 @@ import replaceAroundStep from './helpers/replaceAroundStep'; import addMarkStep from './helpers/addMarkStep'; import removeMarkStep from './helpers/removeMarkStep'; -const trackedTransaction = (tr, state, user) => { +const trackedTransaction = (tr, state, user, group = 'main') => { // Don't track table operations if (!tr.selectionSet) { const $pos = state.selection.$anchor; @@ -45,7 +45,7 @@ const trackedTransaction = (tr, state, user) => { return tr; } - const group = tr.getMeta('outsideView') ? tr.getMeta('outsideView') : 'main'; + // const group = tr.getMeta('outsideView') ? tr.getMeta('outsideView') : 'main'; const newTr = state.tr; const map = new Mapping(); const date = Math.floor(Date.now() / 300000);