Closed zfletch closed 3 years ago
Adding a comment is a good idea and I've updated the PR.
I don't think the comment plugin will still work if there is no retriever. The particular issue I'm trying to solve is being able to display a tree with config="pedalion"
in the Treebank Template without Arethusa crashing and displaying a blank canvas.
If the comments plugin is not configured in the global config, but the treebank XML has a config type that requires comments (e.g.
config="pedalion"
), then the tree fails to display with the error:This PR fixes the error by wrapping the
w.getData()
call withif (w) { ... }
so that the tree is still displayed.