Commit a995731
committed
fix(track-changes): match fallback in mark lookup to prevent per-keystroke splitting
The `|| ''` fallbacks added to mark creation caused a mismatch with
findTrackedMarkBetween lookups that still passed raw `user.email`
(undefined when no user is set). `'' === undefined` fails, so each
keystroke generated a new tracked-change ID instead of reusing the
adjacent mark's ID.1 parent 965af10 commit a995731
File tree
2 files changed
+2
-2
lines changed- packages/super-editor/src/editors/v1/extensions/track-changes/trackChangesHelpers
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
packages/super-editor/src/editors/v1/extensions/track-changes/trackChangesHelpers/markInsertion.js
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments