mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-25 21:28:11 +08:00
fix erroneous state clearing (#1052)
This commit is contained in:
@@ -62,7 +62,7 @@ export default class ImmutableTypedCrossfilter {
|
||||
|
||||
setData(data) {
|
||||
const { selectionCache } = this;
|
||||
this.selectionCache = null;
|
||||
this.selectionCache = {};
|
||||
return new ImmutableTypedCrossfilter(data, this.dimensions, selectionCache);
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ export default class ImmutableTypedCrossfilter {
|
||||
select("blort", {mode: "range", lo: 0, hi: 999.99});
|
||||
*/
|
||||
const { data, selectionCache } = this;
|
||||
this.selectionCache = null;
|
||||
this.selectionCache = {};
|
||||
const dimensions = { ...this.dimensions };
|
||||
const { dim, id, selection: oldSelection } = dimensions[name];
|
||||
const newSelection = dim.select(spec);
|
||||
|
||||
Reference in New Issue
Block a user