Skip to content

Commit 4991d7b

Browse files
committed
Stop adding syl for correctly linked syllables
1 parent d8ccf7b commit 4991d7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils/EditControls.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ export function initNavbar (neonView: NeonView): void {
355355
attrValue: ''
356356
}
357357
});
358+
param.push(...addSylAction([syllable, precedesSyllable]));
358359
}
359360
else if (precedesSyllable.getAttribute('follows') != '#' + syllable.getAttribute('xml:id')) {
360361
hasInvalidSyllables = true;
@@ -374,8 +375,8 @@ export function initNavbar (neonView: NeonView): void {
374375
attrValue: ''
375376
}
376377
});
378+
param.push(...addSylAction([syllable, precedesSyllable]));
377379
}
378-
param.push(...addSylAction([syllable, precedesSyllable]));
379380
}
380381
else if (syllable.hasAttribute('follows')) {
381382
const followsSyllable = syllables.find(element => element.getAttribute('xml:id') === syllable.getAttribute('follows').substring(1));
@@ -389,6 +390,7 @@ export function initNavbar (neonView: NeonView): void {
389390
attrValue: ''
390391
}
391392
});
393+
param.push(...addSylAction([syllable, followsSyllable]));
392394
}
393395
else if (followsSyllable.getAttribute('precedes') != '#' + syllable.getAttribute('xml:id')) {
394396
hasInvalidSyllables = true;
@@ -408,8 +410,8 @@ export function initNavbar (neonView: NeonView): void {
408410
attrValue: ''
409411
}
410412
});
413+
param.push(...addSylAction([syllable, followsSyllable]));
411414
}
412-
param.push(...addSylAction([syllable, followsSyllable]));
413415
}
414416
}
415417

0 commit comments

Comments
 (0)