datalad / datalad-catalog

Create a user-friendly data catalog from structured metadata
https://datalad-catalog.netlify.app
MIT License
14 stars 12 forks source link

JS displays file size as "NaN undefined" if not present #327

Closed mslw closed 9 months ago

mslw commented 1 year ago

The contentbytesize key is not required in file schema. If the key is not present, the catalog will show NaN undefined in the place of size. In the example below, only file1.dat has contentbytesize defined:

Screenshot from 2023-07-07 15-49-35

For metadata and config that I used, see this gist.

jsheunis commented 12 months ago

Thanks @mslw. Will work a fix into the next release.

jsheunis commented 9 months ago

Fixed in https://github.com/datalad/datalad-catalog/pull/369/commits/f2a0307cd8cbc19bab4d16757d5ebc7048332a53