-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does anyone else have a problem with deleting/updating an annotation? #703
Comments
The annotations must have an https://github.com/openannotation/annotator/blob/master/src/storage.js#L599 |
Thanks for your timely reply. When I create an annotation I am storing them in mongoDB which will automatically create an id, however this id is not being sent in the url when I click the delete (x) on the annotation. When I am creating an annotation and then storing the annotation there is also no id being sent in the request body, only quote, ranges, text and uri. I would not have the uri in the body only that I included it on the client side. Do i have to do the same with the id? |
You need to include the After you save an annotation, you will want to also update the new annotation by returning the annotation, with its new |
That's exactly it, thank you! |
Hi, I am using annotator v 2., I have annotator saving annotations and loading them again on page load, however when I try to delete or update the annotation I get an error 'annotation must have an id for delete()' and similar for update.
Has anyone had any problems with this before?
P.S my backend is fine and set up as per the documentation (works with postman) but I must be missing something on the front end, any help is appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: