linnarsson-lab / loom-viewer

Tool for sharing, browsing and visualizing single-cell data stored in the Loom file format
BSD 2-Clause "Simplified" License
35 stars 6 forks source link

[bug] datasets not being displayed #22

Closed JobLeonard closed 8 years ago

JobLeonard commented 8 years ago

Opening/closing just for keeping track of these issues. The datasets were not being displayed, despite being fetched from the server. The bug was caused because I chose to make arrow functions more explicit, so rewrite x => x*x to (x) => { return x*x; }. What I did not know is that in the last case, we have to explicitly return the value. This lead to a bunch of bugs that I'm now slowly fixing as I find them.

Doesn't work:

.then((response) => { response.json();})

Works:

.then((response) => { return response.json();})

Anyway, datasets are being displayed again.