restore per character updates in sticky notes

This commit is contained in:
KDSBrowne 2022-11-14 22:33:11 +00:00
parent 624a133d87
commit 9839d50a72

View File

@ -590,6 +590,16 @@ export default function Whiteboard(props) {
persistShape(diff, whiteboardId);
}
}
if (reason && reason === 'patched_shapes') {
const patchedShape = e?.getShape(e?.getPageState()?.editingId);
const diff = {
id: patchedShape.id,
point: patchedShape.point,
text: patchedShape.text
}
persistShape(diff, whiteboardId);
}
};
const onUndo = (app) => {