Odd behavior with word deletion

In the Maori thread I wanted to do a comparison where I’d get a bunch of word glosses using context-sensitive lookups, and then Delete + Permanent Delete all of my words, turn context-sensitive OFF, and then go back in and get the definitions again.

I use “Ready to Learn” auto-highlight and to my surprise, perma-deleting all my words left words underlined. It creates a minor issue where clicking an underlined word gives no definition and no option to find a definition. (Though one can turn off the auto-highlight setting and get a definition then.)

Does this still happen for you? I tried reproducing it within one Readlang tab but didn’t manage.

One way I could imagine it happening is if you delete your words in a different Readlang tab from the one with the word highlights. In that case then this is very possible since the tab with the word highlights will not be aware that the words have been deleted until you either refresh the tab or exit the reader interface.

I’m not able to reproduce it anymore, but there is something different. Fairly minor. But I do this:

  1. go into a story, highlight some words
  2. back out (click top left corner), go to words, delete all words. Don’t have to perma-delete.
  3. go back to My Texts and open the story again. It doesn’t load the story, producing the below image and console error.

The problem can be fixed by hitting F5 on the page, or returning to the Word List tab and then going back into the story.

I’m thinking this might be tied to suddenly having zero words to display in the Word List, because the issue doesn’t seem to happen if you delete, say, all but one word.

SelectionActionList.ts:25 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘toJSON’)
at SelectionActionList.ts:25:65
at ni (underscore-1.13.6.js:1411:9)
at n.appliesToSelection (SelectionActionList.ts:21:14)
at SelectionActionView.ts:104:16
at e.Jt (underscore-1.13.6.js:1321:7)
at n.each (backbone-min-1.6.0.js:1:17008)
at n.updateState (SelectionActionView.ts:89:30)
at po. (SelectionActionView.ts:33:14)