fix: Layout only changes not synced to content property
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import isEqual from "fast-deep-equal";
|
||||
import revisionCreator from "@server/commands/revisionCreator";
|
||||
import { Revision, Document, User } from "@server/models";
|
||||
import { DocumentEvent, RevisionEvent, Event } from "@server/types";
|
||||
@@ -25,11 +26,11 @@ export default class RevisionsProcessor extends BaseProcessor {
|
||||
});
|
||||
const previous = await Revision.findLatest(document.id);
|
||||
|
||||
// we don't create revisions if identical to previous revision, this can
|
||||
// happen if a manual revision was created from another service or user.
|
||||
// we don't create revisions if identical to previous revision, this can happen if a manual
|
||||
// revision was created from another service or user.
|
||||
if (
|
||||
previous &&
|
||||
document.text === previous.text &&
|
||||
isEqual(document.content, previous.content) &&
|
||||
document.title === previous.title
|
||||
) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user