alpheios-project / arethusa

Arethusa: Annotation Environment
http://sosol.perseids.org/tools/arethusa
MIT License
34 stars 26 forks source link

comments not always refreshing upon initial save #775

Open balmas opened 7 years ago

balmas commented 7 years ago

we still seem to be having a problem with first comments in a document not displaying upon initial save.

polycrates commented 2 years ago

The problem seems to be in app/js/arethusa.comments/services/comments.js:176 (errors out when finding length of missing object). Quick fix that is working so far for me: if (self.comments){ if (self.comments.length !== 0) { addToIndex(commentContainer); } } else { retrieveComments(); } I don't know the app well enough to be sure this won't have unintended consequences, but I'm busy with a couple of treebanks on a local install, so I'll follow up if need be.

Like maybe in 2028 :-)