Skip to content

Commit

Permalink
Stop adding syl for correctly linked syllables
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Apr 3, 2024
1 parent d8ccf7b commit 4991d7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/EditControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export function initNavbar (neonView: NeonView): void {
attrValue: ''
}
});
param.push(...addSylAction([syllable, precedesSyllable]));
}
else if (precedesSyllable.getAttribute('follows') != '#' + syllable.getAttribute('xml:id')) {
hasInvalidSyllables = true;
Expand All @@ -374,8 +375,8 @@ export function initNavbar (neonView: NeonView): void {
attrValue: ''
}
});
param.push(...addSylAction([syllable, precedesSyllable]));
}
param.push(...addSylAction([syllable, precedesSyllable]));
}
else if (syllable.hasAttribute('follows')) {
const followsSyllable = syllables.find(element => element.getAttribute('xml:id') === syllable.getAttribute('follows').substring(1));
Expand All @@ -389,6 +390,7 @@ export function initNavbar (neonView: NeonView): void {
attrValue: ''
}
});
param.push(...addSylAction([syllable, followsSyllable]));
}
else if (followsSyllable.getAttribute('precedes') != '#' + syllable.getAttribute('xml:id')) {
hasInvalidSyllables = true;
Expand All @@ -408,8 +410,8 @@ export function initNavbar (neonView: NeonView): void {
attrValue: ''
}
});
param.push(...addSylAction([syllable, followsSyllable]));
}
param.push(...addSylAction([syllable, followsSyllable]));
}
}

Expand Down

0 comments on commit 4991d7b

Please sign in to comment.