Dear all,
I stumbled on a bug in the rendering of search results using the ELN GUI when searching for Datasets.
Version: 20.10.7.1
The error seems to be caused by the rendering of the sizeHumanReadable
property.
The error can be circumvented by introducing the following modification.
this.renderNumberOfBytes = function(bytes) {
if (typeof bytes == "string") {
bytes = parseInt(bytes)
} else if (typeof bytes == "undefined") {
bytes = 0
}
var size = bytes;
var unit = "bytes"
var kbytes = bytes / 1024.0;
var mbytes = kbytes / 1024.0;
var gbytes = mbytes / 1024.0;
if (gbytes > 1.0) {
size = gbytes;
unit = "Gb";
} else if (mbytes > 1.0) {
size = mbytes;
unit = "Mb";
} else if (kbytes > 1.0) {
size = kbytes;
unit = "kb";
}
return size.toFixed(1) + " " + unit;
Best regards,
Khalil