NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 26 forks source link

TypeError: Cannot read property 'metrics_package_counts' of null #804

Closed amoeba closed 5 years ago

amoeba commented 5 years ago

I'm seeing a situation where the package table spins forever at

Retrieving data set details...

Steps to reproduce:

  1. Visit https://knb.ecoinformatics.org/view/urn:uuid:0beca8b9-7fcb-468f-9118-2bcc9f641f90
  2. See package table won't load / this error in console:
Uncaught TypeError: Cannot read property 'metrics_package_counts' of null
    at n.getMemberRow (PackageTableView.js?v=2.3.1:352)
    at PackageTableView.js?v=2.3.1:91
    at Function.m.each.m.forEach (underscore.js:153)
    at n.render (PackageTableView.js?v=2.3.1:89)
    at n.insertPackageTable (MetadataView.js?v=2.3.1:633)
    at MetadataView.js?v=2.3.1:541
    at Function.m.each.m.forEach (underscore.js:153)
    at n.insertPackageDetails (MetadataView.js?v=2.3.1:521)
    at n.<anonymous> (backbone.js:328)
    at n.<anonymous> (underscore.js:890)
amoeba commented 5 years ago

@laurenwalker knows about this and is pushing a fix to production ASAP.

laurenwalker commented 5 years ago

Did a hot fix to production. Was fixed with commit https://github.com/NCEAS/metacatui/commit/dfd725b037a8c679fb7b262750ce52de43d8102e

Is related to #805

amoeba commented 5 years ago

Thanks @laurenwalker !