Skip to content

Commit

Permalink
markups in same content
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Dec 23, 2024
1 parent a344b13 commit 82bc2bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/LexicalEntryCorp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,14 @@ const Entities = ({
update_set2[entity_id_str] = null;
setUpdateSet(update_set2);

const markups = ready_markups || [[]];
const current_markups = entity.additional_metadata?.markups;
let markups = ready_markups || current_markups;

if (!ready_markups &&
content !== entity.content &&
entity.additional_metadata?.markups &&
entity.additional_metadata.markups.length > 1) {
if (!ready_markups && content !== entity.content &&
current_markups && current_markups.length > 1) {

const diff = patienceDiff(entity.content, content).lines;
markups = [[]];

for (const markup of entity.additional_metadata.markups) {
if (!markup.length || markup[0].length !== 2) {
Expand Down

0 comments on commit 82bc2bb

Please sign in to comment.