edge case, when there's a single word in paragraph block, if you add another word and then run alignmenet, either by saving, clicking ♻️ btn, or hitting enter. It freezes the UI
To Reproduce
Steps to reproduce the behavior:
Go to storybook demo
remove all but one words in a short paragraph
click ♻️ align btn
That's your starting point
add more words eg "test test"
go back to the space before the last word you added hit enter
See error - UI freezes.
Correction: even doing up to step 3 will freeze the UI. (one word to be aligned to what before was a longer paragraph seems to fail/freeze the UI).
Expected behavior
UI not to freze
Screenshots
Eg last paragraph block in this example below is one word when I add "test test" and hit enter before the last "test" word it freezes the UI.
Additional context
NA
Might need re-thinking either stt-align-node further upstream or the update timestamps module in this repo that wraps around it. To look for and handle this edge case. Worth also considering how many words is a minimum for alignment module to work, eg would it work with 2? or needs to be more?
Describe the bug
edge case, when there's a single word in paragraph block, if you add another word and then run alignmenet, either by saving, clicking ♻️ btn, or hitting enter. It freezes the UI
To Reproduce Steps to reproduce the behavior:
Correction: even doing up to step 3 will freeze the UI. (one word to be aligned to what before was a longer paragraph seems to fail/freeze the UI).
Expected behavior
UI not to freze Screenshots
Eg last paragraph block in this example below is one word when I add "test test" and hit enter before the last "test" word it freezes the UI.
Additional context
NA
Might need re-thinking either stt-align-node further upstream or the update timestamps module in this repo that wraps around it. To look for and handle this edge case. Worth also considering how many words is a minimum for alignment module to work, eg would it work with 2? or needs to be more?