Skip to content

Commit 7d56b60

Browse files
committed
Cleanup comments
1 parent 66c9366 commit 7d56b60

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/addNodeMarkStep.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ export function trackAddNodeMarkStep(
4949
.create({
5050
id: suggestionId,
5151
type: "mark",
52-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
53-
previousValue: previousValue?.toJSON(),
54-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
55-
newValue: step.mark.toJSON(),
52+
previousValue: previousValue?.toJSON() as Record<string, unknown> | null,
53+
newValue: step.mark.toJSON() as Record<string, unknown> | null,
5654
})
5755
.addToSet(newMarks);
56+
5857
trackedTransaction.setNodeMarkup(rebasedPos, null, null, newMarks);
5958
return true;
6059
}

src/schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export const modification: MarkSpec = {
7979
"data-id": JSON.stringify(mark.attrs["id"]),
8080
"data-mod-type": mark.attrs["type"] as string,
8181
"data-mod-prev-val": JSON.stringify(mark.attrs["previousValue"]),
82-
// TODO: Try to serialize marks with toJSON?
8382
"data-mod-new-val": JSON.stringify(mark.attrs["newValue"]),
8483
},
8584
0,

0 commit comments

Comments
 (0)