hms-dbmi / vizarr

A minimal Zarr image viewer based on Viv.
https://hms-dbmi.github.io/vizarr/?source=https://minio-dev.openmicroscopy.org/idr/v0.3/idr0062-blin-nuclearsegmentation/6001240.zarr
MIT License
123 stars 18 forks source link

Handle missing or empty channel.label #141

Closed will-moore closed 2 years ago

will-moore commented 2 years ago

When looking at https://uk1s3.embassy.ebi.ac.uk/0.4_samples/coins/ I see the following error, caused by no channel.label in the omero metadata.

Warning: Each child in a list should have a unique "key" prop.
Check the render method of `AddChannelButton`. 

Although there probably should be a channel.label it isn't invalid for it to be missing, and it seems like this is worth handling.

With this fix, the error goes away, but I still see errors which I think are due to the .zarray responses showing no data in Firefox and Chrome. Not CORS issue but something else @sbesson?