A second declaration of ds was being created in another scope, but outer scope (which had undefined value) was being returned. This showed up in the UI by clearing the dataset attributes when unpublishing the dataset.
A second declaration of ds was being created in another scope, but outer scope (which had undefined value) was being returned. This showed up in the UI by clearing the dataset attributes when unpublishing the dataset.

materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org