diff --git a/client/src/app/site/pages/meetings/pages/motions/modules/change-recommendations/services/motion-diff.service/motion-diff.service.ts b/client/src/app/site/pages/meetings/pages/motions/modules/change-recommendations/services/motion-diff.service/motion-diff.service.ts index e8ee8da7b8..b6d030b861 100644 --- a/client/src/app/site/pages/meetings/pages/motions/modules/change-recommendations/services/motion-diff.service/motion-diff.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/modules/change-recommendations/services/motion-diff.service/motion-diff.service.ts @@ -1342,11 +1342,12 @@ export class MotionDiffService { const ln = htmlNewEl.body.querySelector(`.os-line-number`); htmlNewEl.body.children[0].childNodes[0].before(ln); htmlOldEl.body.children[0].querySelector(`.os-line-number`).remove(); - htmlNew = htmlNewEl.body.innerHTML; } } diffDomTiptapMigration(htmlOldEl, htmlNewEl); + + htmlNew = htmlNewEl.body.innerHTML; htmlOld = htmlOldEl.body.innerHTML; // os-split-after should not be considered for detecting changes in paragraphs, so we strip it here diff --git a/client/src/app/ui/modules/editor/components/editor/helpers/migrate-diff.ts b/client/src/app/ui/modules/editor/components/editor/helpers/migrate-diff.ts index 3eacdfc7bf..96598b1d4b 100644 --- a/client/src/app/ui/modules/editor/components/editor/helpers/migrate-diff.ts +++ b/client/src/app/ui/modules/editor/components/editor/helpers/migrate-diff.ts @@ -27,5 +27,6 @@ function migrateListItems(doc: Document): void { export function diffDomTiptapMigration(docOld: Document, docNew: Document): void { if (docNew.querySelector(`li > p`)) { migrateListItems(docOld); + migrateListItems(docNew); } }