diff --git a/wax-prosemirror-core/src/WaxView.js b/wax-prosemirror-core/src/WaxView.js index 0a146c01b2f28289c1753c8c38bb3280669f04c8..7745a2c6f490b6bc19f66b92a1220ebefda104e9 100644 --- a/wax-prosemirror-core/src/WaxView.js +++ b/wax-prosemirror-core/src/WaxView.js @@ -59,8 +59,6 @@ export default props => { }, []); const dispatchTransaction = transaction => { - const { TrackChange } = props; - /*when a transaction comes from a view other than main don't keep updating the view ,as this this the central point of each transaction @@ -73,7 +71,8 @@ export default props => { "main" ); } - const tr = TrackChange + + const tr = { props: { TrackChange } } ? trackedTransaction(transaction, view.state, user) : transaction; diff --git a/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js b/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js index 7aebb9d462c6053821bdab4991feb005e7b70c98..10d5dadef64454b757045699501b038ee8b03016 100644 --- a/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js +++ b/wax-prosemirror-services/src/TrackChangeService/track-changes/trackedTransaction.js @@ -33,7 +33,6 @@ const trackedTransaction = (tr, state, user) => { } const group = tr.getMeta("outsideView") ? tr.getMeta("outsideView") : "main"; - console.log(group); const newTr = state.tr; const map = new Mapping(); const date = Math.floor(Date.now() / 300000);