-
Notifications
You must be signed in to change notification settings - Fork 8
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
Segmentation saved successfully but not showing after reload #84
Comments
the problem seems to be line 1329 in microdraw.js: |
argh.. no, in fact the data is indexed using the display name: Here's, for example, one of the DB entries:
We will need to fix the code, and fix the database... |
In commit 42f4372 I did a temporary fix for the bug. Instead of matching only numbers in the slice field, I match any string. That fixes the problem for the moment. However, the real solution is to use slice indices exclusively, and to cleanup the database accordingly (plus, the current method maybe allows for xss attacks!) |
the additional enhancement is described in issue #86 |
after segmenting slice 54 and 55 here https://microdraw.pasteur.fr/project/FIINDv2?source=https%3A%2F%2Fmicrodraw.pasteur.fr%2FF117_P32_Nissl%2FF117_P32_Nissl.json&project=FIINDv2&slice=53
The segmentations were “successfully saved”. I was the only user connected. After reload, the segmentations were not showing anymore.
Idea: These slices are part of the “differently named” slices, so in the json file for the data there is a name array, where we add info on slice names (like in these slices). My hope is that my segmentations just don’t show currently, but are well in the database and will reappear once the error is fixed.
segmented using Safari iOS
Checked in chrome
these are the error messages in the console
microdraw.js:476 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Regions')
at Object.newRegion (microdraw.js:476:33)
at Object._addRegions (microdraw.js:1339:14)
at Object.initAnnotationOverlay (microdraw.js:1422:34)
could you have a look at this @ntraut ? That would be fantastic! ❤️
The text was updated successfully, but these errors were encountered: