ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 30 forks source link

Don't update zoom to undefined on setId #550

Closed will-moore closed 2 months ago

will-moore commented 2 months ago

Fixes a bug introduced in #527: On Edit ID the panel zoom is updated to undefined since the incoming image data has no zoom info so data.zoom is always undefined.

This results in rendering errors - e.g. Zoom slider 0 and other NaN values below:

Screenshot 2024-04-08 at 17 49 39

To test:

cc @Rdornier

will-moore commented 2 months ago

@jburel - Any idea what's failing in the above job? Seems that npm isn't installed.

Same error on #549 (and I assume on all other PRs when they next try to run checks):

+ python setup.py sdist
running sdist
npm install
error: command 'npm' failed: No such file or directory

Thanks

Rdornier commented 2 months ago

I can indeed reproduce the bug. I didn't thought about testing this feature when I added this feature. Thanks for reporting and fixing it.

pwalczysko commented 2 months ago

Reproduced on demo (without this PR). See it fixed on merge-ci.

will-moore commented 2 months ago

Released in omero-figure 6.2.1