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